continued writing cache
[NeonServV5.git] / ClientSocket.c
index 20ec7246a92af4bf506fc6fa59db7bcf986f2946..1d5e2f1fb60610548deb73d0a99138f36c56346c 100644 (file)
@@ -185,7 +185,7 @@ putsock(struct ClientSocket *client, const char *text, ...)
     va_end(arg_list);
     if (pos < 0 || pos > (MAXLEN - 2)) pos = MAXLEN - 2;
     sendBuf[pos] = '\n';
-    sendBuf[pos+1] = '0';
+    sendBuf[pos+1] = '\0';
     write_socket(client, sendBuf, pos+1);
 }