Fix mamer crash on listmanagers command
authorH.G. Muller <h.g.muller@hccnet.nl>
Tue, 29 Nov 2011 10:31:48 +0000 (11:31 +0100)
committerH.G. Muller <h.g.muller@hccnet.nl>
Tue, 29 Nov 2011 10:31:48 +0000 (11:31 +0100)
lasker-2.2.3/bots/mamer/CommandEntry.cc

index c097030..4046358 100644 (file)
@@ -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;