diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/unlit/unlit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/unlit/unlit.c b/utils/unlit/unlit.c index 5a0e535109..2ec2af6058 100644 --- a/utils/unlit/unlit.c +++ b/utils/unlit/unlit.c @@ -224,9 +224,9 @@ static line readline(FILE *istream, FILE *ostream) { while(i > 0 && isspace(buf[i-1])) i--; buf[i] = 0; - if (strcmp(buf, BEGINCODE) == 0) + if (strncmp(buf, BEGINCODE, LENBEGINCODE) == 0) return BEGIN; - if (strcmp(buf, ENDCODE) == 0) + if (strncmp(buf, ENDCODE, LENENDCODE) == 0) return END; #if defined(PSEUDOCODE) else if (strcmp(buf, BEGINPSEUDOCODE) == 0) |