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