evp: prevent underflow in base64 decoding
[openssl.git] / crypto / des / enc_writ.c
index 6e25b6d4f048e32e5cd123f065a9bd46c354fbea..2353ac1e892fd3310b68450293ad030cfc70147e 100644 (file)
@@ -156,7 +156,11 @@ int DES_enc_write(int fd, const void *_buf, int len,
                {
                /* eay 26/08/92 I was not doing writing from where we
                 * got up to. */
+#ifndef _WIN32
                i=write(fd,(void *)&(outbuf[j]),outnum-j);
+#else
+               i=_write(fd,(void *)&(outbuf[j]),outnum-j);
+#endif
                if (i == -1)
                        {
 #ifdef EINTR