me stupid.
authorSimo Sorce <idra@samba.org>
Sun, 5 Aug 2001 16:05:40 +0000 (16:05 +0000)
committerSimo Sorce <idra@samba.org>
Sun, 5 Aug 2001 16:05:40 +0000 (16:05 +0000)
never commit without building.
sorry.
(This used to be commit f87924aec4ff3ad1855b470c33df2e0ae9d51d85)

source3/lib/util.c

index 86c93e5ad0e81ea7775c8ccef7bef9c70c009314..ac0a004a26493fddcd9d6c8b9258e9b9b05a404f 100644 (file)
@@ -524,7 +524,7 @@ SMB_OFF_T transfer_file(int infd,int outfd,SMB_OFF_T n,char *header,int headlen,
   }
 
   while (!buf && size>0) {
-    buf = (char *)malloc(buf,size+8);
+    buf = (char *)malloc(size+8);
     if (!buf) size /= 2;
   }