summaryrefslogtreecommitdiff
path: root/usr.bin/fetch
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>1997-03-11 20:09:49 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>1997-03-11 20:09:49 +0000
commitd59831fba906543bd3521ca4b1822a1dba537de4 (patch)
treed0dbf5e9efc022ce7a7ae614d44acd393c8aabbd /usr.bin/fetch
parent0259d93a5fea4fc452867968e916c35dd6fb187b (diff)
Notes
Diffstat (limited to 'usr.bin/fetch')
-rw-r--r--usr.bin/fetch/ftp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/fetch/ftp.c b/usr.bin/fetch/ftp.c
index a036301e56bb..b02b503d1f78 100644
--- a/usr.bin/fetch/ftp.c
+++ b/usr.bin/fetch/ftp.c
@@ -26,7 +26,7 @@
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: ftp.c,v 1.3 1997/02/10 18:49:40 wollman Exp $
+ * $Id: ftp.c,v 1.3.2.1 1997/03/10 07:12:49 fenner Exp $
*/
#include <sys/types.h>
@@ -370,7 +370,7 @@ ftp_retrieve(struct fetch_state *fs)
if (env) {
errno = 0;
ul = strtoul(env, &ep, 0);
- if (*env && *ep && errno == 0 && ul <= INT_MAX)
+ if (*env && *ep == '\0' && errno == 0 && ul <= INT_MAX)
fs->fs_timeout = ul;
else
warnx("`%s': invalid FTP timeout", env);