From c5487db9cda48782ebcd452b9161a4e015e08c95 Mon Sep 17 00:00:00 2001 From: Mandrake Date: Thu, 23 Mar 2000 01:13:21 +0000 Subject: [PATCH] someone inserted a bug in here. someone ADDED a ; to an important if statement :( SVN revision: 2304 --- viewer.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/viewer.c b/viewer.c index 7954dcf..bd24e05 100644 --- a/viewer.c +++ b/viewer.c @@ -650,14 +650,15 @@ create_list_window(void) sscanf(buf, "%*s %*s %i", &j); strcpy(stuff[2],""); /*sprintf(stuff[2],"%s",actions[j].text); */ - if (atword(buf, 4)) + if (atword(buf, 4)) { sprintf(stuff[3],"%s",atword(buf, 4)); - else + } else { strcpy(stuff[3],""); + } for (k = 0; (actions[k].text); k++) { if (j == actions[k].id) { if (strcmp(stuff[3],"")) { - if ((j==9) && (!strncmp(stuff[3],"named",5))); + if ((j==9) && (!strncmp(stuff[3],"named",5))) sscanf(stuff[3],"%*s %s",stuff[3]); if ((actions[k].param_tpe == 0)&&(actions[k].params)) { if (!strcmp(stuff[3], actions[k].params)) {