mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-14 14:55:41 +00:00
Fix an off-by-one error which breaks this (detected by malloc flags):
the line being read in was terminated one byte too late.
This commit is contained in:
parent
62a721e79c
commit
18b8dc18fd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=62931
@ -461,7 +461,7 @@ read_configuration(void)
|
||||
exit(2);
|
||||
}
|
||||
strncpy(linez, line, len);
|
||||
linez[len+1] = '\0';
|
||||
linez[len] = '\0';
|
||||
|
||||
/* find the end of the current word (is field), that's the
|
||||
* start of the arguments
|
||||
|
Loading…
Reference in New Issue
Block a user