* preinit the serverbuffer, so we don't get unexpected results later
authorWilfried Göesgens <willi@citadel.org>
Sun, 14 Sep 2008 21:40:25 +0000 (21:40 +0000)
committerWilfried Göesgens <willi@citadel.org>
Sun, 14 Sep 2008 21:40:25 +0000 (21:40 +0000)
webcit/roomops.c

index e88f2db1acc4551a2b01aee6323f9ec686dd5b42..5869173a55153f2eb5b36fda03122cf4215dc193 100644 (file)
@@ -452,6 +452,8 @@ void embed_room_banner(char *got, int navbar_style) {
         * If it isn't supplied, we fake it by issuing our own GOTO.
         */
        if (got == NULL) {
+               memset(buf, 20, '0');
+               buf[20] = '\0';
                serv_printf("GOTO %s", WC->wc_roomname);
                serv_getln(buf, sizeof buf);
                got = buf;