deal with maxfilelen < 0 case

This commit is contained in:
Todd C. Miller
1997-01-16 00:05:55 +00:00
parent f842ab526b
commit 0caa3cc557

View File

@@ -374,7 +374,7 @@ void log_error(code)
oldend = end;
end = strchr(oldend, ' ');
if (end) {
if (maxlen > 0 && end) {
*end = '\0';
if (strlen(beg) > maxlen) {
/* too far, need to back up & print the line */