NUL-terminate (Jakub Bogusz)

This commit is contained in:
albert 2002-12-22 00:30:31 +00:00
parent 70599c3d3f
commit 1f3181bcbf

View File

@ -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);