NUL-terminate (Jakub Bogusz)
This commit is contained in:
parent
70599c3d3f
commit
1f3181bcbf
@ -255,6 +255,7 @@ open_again:
|
|||||||
/* FIXME: memory leak */
|
/* FIXME: memory leak */
|
||||||
_exit(42);
|
_exit(42);
|
||||||
}
|
}
|
||||||
|
buf[total] = '\0'; // parse_ksyms() expects NUL-terminated file
|
||||||
*bufp = buf;
|
*bufp = buf;
|
||||||
*roomp = room;
|
*roomp = room;
|
||||||
close(fd);
|
close(fd);
|
||||||
|
Loading…
Reference in New Issue
Block a user