summaryrefslogtreecommitdiff
path: root/sftp.c
diff options
context:
space:
mode:
Diffstat (limited to 'sftp.c')
-rw-r--r--sftp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sftp.c b/sftp.c
index c018615ae..a39c782f7 100644
--- a/sftp.c
+++ b/sftp.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sftp.c,v 1.92 2006/09/19 05:52:23 otto Exp $ */ 1/* $OpenBSD: sftp.c,v 1.93 2006/09/30 17:48:22 ray Exp $ */
2/* 2/*
3 * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org> 3 * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
4 * 4 *
@@ -977,6 +977,7 @@ parse_args(const char **cpp, int *pflag, int *lflag, int *iflag,
977 case I_CHOWN: 977 case I_CHOWN:
978 case I_CHGRP: 978 case I_CHGRP:
979 /* Get numeric arg (mandatory) */ 979 /* Get numeric arg (mandatory) */
980 errno = 0;
980 l = strtol(cp, &cp2, base); 981 l = strtol(cp, &cp2, base);
981 if (cp2 == cp || ((l == LONG_MIN || l == LONG_MAX) && 982 if (cp2 == cp || ((l == LONG_MIN || l == LONG_MAX) &&
982 errno == ERANGE) || l < 0) { 983 errno == ERANGE) || l < 0) {