isl_stream_next_token: terminate string tokens
authorSven Verdoolaege <skimo@kotnet.org>
Sat, 24 Apr 2010 09:46:15 +0000 (11:46 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Sat, 24 Apr 2010 09:46:15 +0000 (11:46 +0200)
isl_stream.c

index f88ec07..88670cb 100644 (file)
@@ -355,6 +355,7 @@ static struct isl_token *next_token(struct isl_stream *s, int same_line)
                        isl_stream_error(s, NULL, "unterminated string");
                        goto error;
                }
+               isl_stream_push_char(s, '\0');
                tok->u.s = strdup(s->buffer);
                return tok;
        }