@@ -1,4 +1,9 @@
-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.
* configure.in, debian/control: New upstream gettext. Since we had
to change our build, to comply with the new upstream, we also
@@ -264,6 +264,8 @@ ssize_t buffer_copy(buffer_data_t read_data, buffer_data_t write_data, ssize_t l
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);