diff options
author | Ryan Bloom <rbb@apache.org> | 2000-10-08 18:06:57 +0200 |
---|---|---|
committer | Ryan Bloom <rbb@apache.org> | 2000-10-08 18:06:57 +0200 |
commit | 68115db5618a0b2f1cdb1c9d200c5800ceb27928 (patch) | |
tree | eea7dc6020f43c37c140a7858beaa413f61945f1 /modules/http/http_protocol.c | |
parent | Really out of date, but here's something worth adding. (diff) | |
download | apache2-68115db5618a0b2f1cdb1c9d200c5800ceb27928.tar.xz apache2-68115db5618a0b2f1cdb1c9d200c5800ceb27928.zip |
Clean up the test for \0 in getline.
Submitted by: Will Wrowe
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86456 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | modules/http/http_protocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/http/http_protocol.c b/modules/http/http_protocol.c index 66e420cbb1..03a2ad3d82 100644 --- a/modules/http/http_protocol.c +++ b/modules/http/http_protocol.c @@ -1023,7 +1023,7 @@ static int getline(char *s, int n, conn_rec *c, int fold) */ if ((toss = ap_strchr_c(temp, ASCII_LF)) != NULL) { length = toss - temp + 1; - e->split(e, length + (temp[length] == 0)); + e->split(e, length + (temp[length] == '\0' ? 1 : 0)); apr_cpystrn(pos, temp, length + 1); AP_BUCKET_REMOVE(e); |