aboutsummaryrefslogtreecommitdiffstats
path: root/slowcgi.c
diff options
context:
space:
mode:
authorflorian2013-05-23 16:13:08 +0000
committerWynn Wolf Arbor2020-05-24 12:33:55 +0200
commitaede6953c1023ad3cdb22d205e57752bbb3a8b48 (patch)
tree39d31c31e7ba4004341cc12ac55de2d8473d542e /slowcgi.c
parent22fbaacffcf3159edd6877b1a1afcc4040070d3b (diff)
downloadslowcgi-aede6953c1023ad3cdb22d205e57752bbb3a8b48.tar.gz
off by one, from Henri Kemppainen <duclare-at-guu.fi>, thanks!
Diffstat (limited to 'slowcgi.c')
-rw-r--r--slowcgi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/slowcgi.c b/slowcgi.c
index 029f64a..a227602 100644
--- a/slowcgi.c
+++ b/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] = '=';