commit | 812e7a73b2d697911b31f612b5f2352343d85614 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Sat Jul 09 14:28:01 2011 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Mon Jul 11 06:48:02 2011 +0200 |
tree | 56c9c93619ed583f935099475241f678246181ab | |
parent | b3eb221e78a64dced641907f0f8c6bc651ad0ea8 [diff] [blame] |
[BUG] halog: correctly handle truncated last line If last line is truncated (eg: truncated file), then halog would loop on it forever.
diff --git a/contrib/halog/fgets2.c b/contrib/halog/fgets2.c index 61d9ef5..6c5bc6b 100644 --- a/contrib/halog/fgets2.c +++ b/contrib/halog/fgets2.c
@@ -130,6 +130,7 @@ return NULL; *end = '\0'; + end = line; /* ensure we stop next time */ return line; }