projects
/
platform
/
upstream
/
isl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9146e94
)
isl_stream_next_token: terminate string tokens
author
Sven Verdoolaege
<skimo@kotnet.org>
Sat, 24 Apr 2010 09:46:15 +0000
(11:46 +0200)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Sat, 24 Apr 2010 09:46:15 +0000
(11:46 +0200)
isl_stream.c
patch
|
blob
|
history
diff --git
a/isl_stream.c
b/isl_stream.c
index
f88ec07
..
88670cb
100644
(file)
--- a/
isl_stream.c
+++ b/
isl_stream.c
@@
-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;
}