-Wed Apr 18 13:15:08 CDT 2001 Adam Heath <doogie@debian.org>
+Wed Apr 18 23:42:16 CDT 2001 Adam Heath <doogie@debian.org>
+
+ * lib/mlib.c: If the buffer size is 0 in buffer_copy, then return, and
+ do nothing.
+
+Wed Apr 18 23:42:16 CDT 2001 Adam Heath <doogie@debian.org>
* configure.in, debian/control: New upstream gettext. Since we had
to change our build, to comply with the new upstream, we also
int bufsize= 32768;
ssize_t totalread= 0, totalwritten= 0;
if((limit != -1) && (limit < bufsize)) bufsize= limit;
+ if(bufsize == 0)
+ return 0;
writebuf= buf= malloc(bufsize);
if(buf== NULL) ohshite(_("failed to allocate buffer in buffer_copy (%s)"), desc);