Browse Source

Fix uninitialized buffer in irc client

K. Lange 4 years ago
parent
commit
ec8b2a3c4f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/irc.c

+ 1 - 1
apps/irc.c

@@ -490,7 +490,7 @@ int main(int argc, char * argv[]) {
 	memset(net_buf, 0, 2048);
 	int net_buf_p = 0;
 
-	char buf[1024];
+	char buf[1024] = {0};
 	int buf_p = 0;
 
 	while (1) {