From 15815bc9a0e17f6288aeb6929bc59107ebc18842 Mon Sep 17 00:00:00 2001 From: Gerfried Fuchs Date: Thu, 4 Sep 2008 09:59:57 +0200 Subject: [PATCH] don't write past the end of the array --- tetrinet.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tetrinet.c b/tetrinet.c index 45fcc48..aa687a2 100644 --- a/tetrinet.c +++ b/tetrinet.c @@ -141,7 +141,6 @@ void parse(char *buf) winlist[i].team = 0; s++; strncpy(winlist[i].name, s, sizeof(winlist[i].name)-1); - winlist[i].name[sizeof(winlist[i].name)] = 0; winlist[i].points = atoi(t); if ((t = strchr(t, ';')) != NULL) winlist[i].games = atoi(t+1); -- 2.11.4.GIT