From: H.G. Muller Date: Tue, 29 Nov 2011 10:31:48 +0000 (+0100) Subject: Fix mamer crash on listmanagers command X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=de64701702c2b4d4d951be0e77afeda5177bc494;p=capablanca.git Fix mamer crash on listmanagers command --- diff --git a/lasker-2.2.3/bots/mamer/CommandEntry.cc b/lasker-2.2.3/bots/mamer/CommandEntry.cc index c097030..4046358 100644 --- a/lasker-2.2.3/bots/mamer/CommandEntry.cc +++ b/lasker-2.2.3/bots/mamer/CommandEntry.cc @@ -230,7 +230,7 @@ int CommandEntry::ListManagers(User *user, param_list params) { "-----------------", "---", "----", "--------", "", "-----------------", "---", "----", "--------", "", "\\n"); i=1; - memset(date, '\0', 64); + memset(date, '\0', 16); gMamer.XServerCom("\n%s %s ", "qtell", user->name); while(fscanf(theFile, "%s", manager) > 0) { needToDelete = 0;