Commit Diff


commit - b4d67e1c045ffecaf610f817ae8c18bf0450d261
commit + 8fe650ede847caf84a7f84c1847b5f72bee86fec
blob - c87341e8faa6ec17fa91b28bcfe8695bbc4f3c14
blob + ea6e71568f54ceca37e6ad0d7448101d30e1dbb2
--- FICS/network.c
+++ FICS/network.c
@@ -384,7 +384,7 @@ readline2(comstr_t *cs, int who)
 				*s = '\0';
 				msnprintf(cs->com, ARRAY_SIZE(cs->com), "%s",
 				    start);
-				if (bytes_received)
+				if (bytes_received > 0)
 					memmove(start, s + 1, bytes_received);
 				con[who].state		= 0;
 				con[who].numPending	= bytes_received;
@@ -423,7 +423,7 @@ readline2(comstr_t *cs, int who)
 				*d = '\0';
 				msnprintf(cs->com, ARRAY_SIZE(cs->com), "%s",
 				    start);
-				if (bytes_received)
+				if (bytes_received > 0)
 					memmove(start, s + 1, bytes_received);
 				con[who].state		= 0;
 				con[who].numPending	= bytes_received;