From ac09fe874e77b559d7b6de36d913a8cb064c9210 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Fri, 12 Dec 2014 19:49:26 +0100 Subject: [PATCH] Fix a segfault. --- lex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lex.c b/lex.c index 2b1b60f..3474a15 100644 --- a/lex.c +++ b/lex.c @@ -332,7 +332,7 @@ gather_string(char *line, unsigned char *linep) if(!GlobalState.skipping_current_game) { fprintf(GlobalState.logfile,"Missing closing quote in %s\n",line); } - if(len != 1){ + if(len > 1){ /* Move back to the null. */ linep--; str[len-1] = '\0'; -- 2.39.2