]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - misc.c
Remove the email address from the footer of the HTML manual, and
[PuTTY.git] / misc.c
diff --git a/misc.c b/misc.c
index 78d829a9b4ecfb8cafdbc648e73d12fd499ef9c9..1bd556e6113cdb7ee13d4f1ca6001e05b35e1b3f 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -1,3 +1,7 @@
+/*
+ * Platform-independent routines shared between all PuTTY programs.
+ */
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdarg.h>
@@ -181,6 +185,8 @@ void bufchain_add(bufchain *ch, const void *data, int len)
 {
     const char *buf = (const char *)data;
 
+    if (len == 0) return;
+
     ch->buffersize += len;
 
     if (ch->tail && ch->tail->buflen < BUFFER_GRANULE) {