We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a2c43e commit d8cb29fCopy full SHA for d8cb29f
ivlpp/lexor.lex
@@ -777,7 +777,7 @@ static void handle_line_directive(void)
777
will underflow on line 1, but that's OK because we are using
778
unsigned arithmetic. */
779
assert(istack);
780
- realloc(istack->path, fn_end-fn_start+1);
+ istack->path = realloc(istack->path, fn_end-fn_start+1);
781
strncpy(istack->path, fn_start, fn_end-fn_start);
782
istack->path[fn_end-fn_start] = '\0';
783
istack->lineno = lineno - 2;
0 commit comments