Lines 1498-1514
Link Here
|
1498 |
if (buf[len - 1] == '\n') |
1498 |
if (buf[len - 1] == '\n') |
1499 |
buf[len - 1] = '\0'; |
1499 |
buf[len - 1] = '\0'; |
1500 |
else |
1500 |
else |
1501 |
if (buf[len - 1] != '\0') |
1501 |
errx(1, "config file format error: " |
1502 |
{ |
1502 |
"last line should end with newline"); |
1503 |
len++; |
|
|
1504 |
buf = strcat(buf, "\0"); |
1505 |
} |
1506 |
/* |
1507 |
* This is being changed to correct the problem instead. |
1508 |
* |
1509 |
* errx(1, "config file format error: " |
1510 |
* "last line should end with newline"); |
1511 |
*/ |
1512 |
|
1503 |
|
1513 |
/* |
1504 |
/* |
1514 |
* Check for comments, strip off trailing spaces. |
1505 |
* Check for comments, strip off trailing spaces. |