NUL terminate buffer from fgetln(3). From fgsch@OpenBSD.
This commit is contained in:
parent
f3a9678034
commit
2c46267f6c
@ -608,6 +608,7 @@ prompt(void)
|
||||
(void)fclose(ttyfp);
|
||||
return (0);
|
||||
}
|
||||
response[rsize - 1] = '\0';
|
||||
match = regexec(&cre, response, 0, NULL, 0);
|
||||
(void)fclose(ttyfp);
|
||||
regfree(&cre);
|
||||
|
Loading…
Reference in New Issue
Block a user