summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2009-12-14 19:35:39 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2009-12-14 19:35:39 +0000
commit6e4a871eaf274be4a143525ef7cbba962eda4163 (patch)
tree9c16c96621f0d17089d85bea4a5c70931ead7b5a /usr.sbin
parentd69f4947dcc80b57a083872604204839d8452fd2 (diff)
wrote one byte too far, found by parfait; ok beck millert
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/httpd/src/modules/proxy/proxy_ftp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/httpd/src/modules/proxy/proxy_ftp.c b/usr.sbin/httpd/src/modules/proxy/proxy_ftp.c
index 2a8a485e92c..195e36f5bd7 100644
--- a/usr.sbin/httpd/src/modules/proxy/proxy_ftp.c
+++ b/usr.sbin/httpd/src/modules/proxy/proxy_ftp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: proxy_ftp.c,v 1.16 2008/05/25 11:46:27 mbalmer Exp $ */
+/* $OpenBSD: proxy_ftp.c,v 1.17 2009/12/14 19:35:38 deraadt Exp $ */
/* ====================================================================
* The Apache Software License, Version 1.1
@@ -1182,7 +1182,7 @@ lpsvagain:
len = 0;
}
else if (i == 213) {/* Size command ok */
- for (j = 0; j < sizeof resp && ap_isdigit(resp[j]); j++);
+ for (j = 0; j < sizeof(resp)-1 && ap_isdigit(resp[j]); j++);
resp[j] = '\0';
if (resp[0] != '\0')
size = ap_pstrdup(p, resp);