diff options
author | Florian Obser <florian@cvs.openbsd.org> | 2013-05-23 16:13:09 +0000 |
---|---|---|
committer | Florian Obser <florian@cvs.openbsd.org> | 2013-05-23 16:13:09 +0000 |
commit | 190aac6a7b3ad3e617c076cd324ef849ad48a862 (patch) | |
tree | 1f6019a9f4a614bc54ae65b6ca323115925de754 /usr.sbin/slowcgi | |
parent | aaa8929d94ab34ecac244fdcb503a8f8478b9378 (diff) |
off by one, from Henri Kemppainen <duclare-at-guu.fi>, thanks!
Diffstat (limited to 'usr.sbin/slowcgi')
-rw-r--r-- | usr.sbin/slowcgi/slowcgi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/slowcgi/slowcgi.c b/usr.sbin/slowcgi/slowcgi.c index 029f64a78f2..a227602cd11 100644 --- a/usr.sbin/slowcgi/slowcgi.c +++ b/usr.sbin/slowcgi/slowcgi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: slowcgi.c,v 1.2 2013/05/23 13:03:52 jasper Exp $ */ +/* $OpenBSD: slowcgi.c,v 1.3 2013/05/23 16:13:08 florian Exp $ */ /* * Copyright (c) 2013 David Gwynne <dlg@openbsd.org> * Copyright (c) 2013 Florian Obser <florian@openbsd.org> @@ -623,7 +623,7 @@ parse_params(uint8_t *buf, uint16_t n, struct client *c, uint16_t id) if (val_len < MAXPATHLEN && strcmp(env_entry->val, "SCRIPT_NAME") == 0) { bcopy(buf, c->script_name, val_len); - c->script_name[val_len+1] = '\0'; + c->script_name[val_len] = '\0'; } env_entry->val[name_len] = '='; |