martin 98/01/31 15:55:42
Modified: src/main util.c
Log:
For CRLF delimited lines, the line numbering would count incorrect.
PR: related tpo #1671
Revision Changes Path
1.91 +2 -1 apache-1.3/src/main/util.c
Index: util.c
===================================================================
RCS file: /home/cvs/apache-1.3/src/main/util.c,v
retrieving revision 1.90
retrieving revision 1.91
diff -u -u -r1.90 -r1.91
--- util.c 1998/01/28 11:33:22 1.90
+++ util.c 1998/01/31 23:55:41 1.91
@@ -812,7 +812,8 @@
if (c == CR) {
/* silently ignore CR (_assume_ that a LF follows) */
c = cfp->getch(cfp->param);
- } else if (c == LF) {
+ }
+ if (c == LF) {
/* increase line number and return on LF */
++cfp->line_number;
}