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:
Brian Feldman 2000-07-11 00:06:44 +00:00
parent 62a721e79c
commit 18b8dc18fd

View File

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