diff options
author | 2009-12-14 19:35:38 +0000 | |
---|---|---|
committer | 2009-12-14 19:35:38 +0000 | |
commit | efee9be9aaf40932e9b975a3d357be2354bcab4f (patch) | |
tree | 1869dded5cd32a11b16e2340806ec51c066c3caf /usr.sbin/httpd/src | |
parent | use warn() and warnx() instead of incorrect stderr printing. (diff) | |
download | wireguard-openbsd-efee9be9aaf40932e9b975a3d357be2354bcab4f.tar.xz wireguard-openbsd-efee9be9aaf40932e9b975a3d357be2354bcab4f.zip |
wrote one byte too far, found by parfait; ok beck millert
Diffstat (limited to 'usr.sbin/httpd/src')
-rw-r--r-- | usr.sbin/httpd/src/modules/proxy/proxy_ftp.c | 4 |
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); |