summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Linehan <patientulysses@gmail.com>2012-06-18 14:06:06 -0400
committerJason Linehan <patientulysses@gmail.com>2012-06-18 14:06:06 -0400
commit78283314f00abf451cf44d1761db9c76f5457e79 (patch)
tree7eaa4a9018a2f622a464b375aac5511345d5973d
parenta5bfd2416b76a73a0596551787765e1cbbc6cca9 (diff)
downloadcloth-78283314f00abf451cf44d1761db9c76f5457e79.tar.gz
cloth-78283314f00abf451cf44d1761db9c76f5457e79.tar.bz2
cloth-78283314f00abf451cf44d1761db9c76f5457e79.zip
Tweaked tweak
-rw-r--r--log.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/log.c b/log.c
index 5d0eb82..1377e7a 100644
--- a/log.c
+++ b/log.c
@@ -69,7 +69,8 @@ void sesinfo_http(struct ses_t *session, char *request)
if (clean = field(token, "GET "), clean != NULL) {
pumpf(&session->resource, "%s", clean);
while (clean[i++] != ' ')
- clean[i] = '\0';
+ ;
+ clean[--i] = '\n';
}
if (clean = field(token, "Host: "), clean != NULL)