From 4d39f311f99da06b4a489423a881672e508bebf7 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 3 Dec 2000 02:28:01 +0000 Subject: fixes git-svn-id: http://svn.irssi.org/repos/irssi/trunk@933 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/gui-windows.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/fe-text') diff --git a/src/fe-text/gui-windows.c b/src/fe-text/gui-windows.c index 5ed1bd88..34c6c719 100644 --- a/src/fe-text/gui-windows.c +++ b/src/fe-text/gui-windows.c @@ -981,7 +981,8 @@ static char *gui_window_line_get_format(WINDOW_REC *window, LINE_REC *line, if (formatnum == -1) ret = NULL; else { - argcount = 0; + argcount = 0; + memset(args, 0, sizeof(args)); while (*text != '\0' || text[1] != LINE_CMD_EOL) { args[argcount] = line_read_format(&text); if (raw != NULL) { -- cgit v1.2.3