mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-01 08:27:59 +00:00
NUL terminate buffer from fgetln(3). From fgsch@OpenBSD.
This commit is contained in:
parent
f22bf18027
commit
b65bc26736
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=153960
@ -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