ispell.
[oweals/openssl.git] / crypto / des / enc_writ.c
index 892f15e2d709706a08fe4492af868986e9f532ac..cc2b50fb509291d2bdfd195a82fecfde6eddfe61 100644 (file)
@@ -95,7 +95,7 @@ int des_enc_write(int fd, const void *_buf, int len,
 
        if (outbuf == NULL)
                {
-               outbuf=Malloc(BSIZE+HDRSIZE);
+               outbuf=OPENSSL_malloc(BSIZE+HDRSIZE);
                if (outbuf == NULL) return(-1);
                }
        /* If we are sending less than 8 bytes, the same char will look
@@ -135,7 +135,7 @@ int des_enc_write(int fd, const void *_buf, int len,
                }
        else
                {
-               cp=(unsigned char*)buf;
+               cp=buf;
                rnum=((len+7)/8*8); /* round up to nearest eight */
                }
 
@@ -152,7 +152,7 @@ int des_enc_write(int fd, const void *_buf, int len,
        for (j=0; j<outnum; j+=i)
                {
                /* eay 26/08/92 I was not doing writing from where we
-                * got upto. */
+                * got up to. */
                i=write(fd,(void *)&(outbuf[j]),outnum-j);
                if (i == -1)
                        {