diff options
author | florian | 2013-05-23 16:13:08 +0000 |
---|---|---|
committer | Wynn Wolf Arbor | 2020-05-24 12:33:55 +0200 |
commit | aede6953c1023ad3cdb22d205e57752bbb3a8b48 (patch) | |
tree | 39d31c31e7ba4004341cc12ac55de2d8473d542e /slowcgi.c | |
parent | 22fbaacffcf3159edd6877b1a1afcc4040070d3b (diff) | |
download | slowcgi-aede6953c1023ad3cdb22d205e57752bbb3a8b48.tar.gz |
off by one, from Henri Kemppainen <duclare-at-guu.fi>, thanks!
Diffstat (limited to 'slowcgi.c')
-rw-r--r-- | slowcgi.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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] = '='; |