Przeglądaj źródła

* Fix bug in gotremotereply() introduced in [3811]

svn: 3836
Bryan Drewery 18 lat temu
rodzic
commit
1a0f50a1f9
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/cmds.c

+ 1 - 1
src/cmds.c

@@ -4326,7 +4326,7 @@ void gotremotereply (char *frombot, char *tohand, char *toidx, char *ln) {
 
     buf = (char *) my_calloc(1, siz);
 
-    simple_snprintf(buf, sizeof(buf), "(%s)", frombot);
+    simple_snprintf(buf, siz, "(%s)", frombot);
     dprintf(idx, "%-13s %s\n", buf, ln);
     free(buf);
   }