diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2012-10-05 12:34:40 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2012-10-05 12:34:40 +0000 |
commit | 4108aecffc21b294ee57f02a0448289ad00a449b (patch) | |
tree | 22358a89b93cca1644becf9504cf74c1d3e60d4b /usr.bin | |
parent | daa5ff3b9ec20b9b266dc3c3f29f1ff412e19453 (diff) |
fix signed vs unsigned warning; feedback & ok: djm@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ssh/sftp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/sftp.c b/usr.bin/ssh/sftp.c index 5b6754dc5a1..90b752f72c9 100644 --- a/usr.bin/ssh/sftp.c +++ b/usr.bin/ssh/sftp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sftp.c,v 1.140 2012/09/21 10:55:04 dtucker Exp $ */ +/* $OpenBSD: sftp.c,v 1.141 2012/10/05 12:34:39 markus Exp $ */ /* * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org> * @@ -968,7 +968,7 @@ makeargv(const char *arg, int *argcp, int sloppy, char *lastquote, state = MA_START; i = j = 0; for (;;) { - if (argc >= sizeof(argv) / sizeof(*argv)){ + if ((size_t)argc >= sizeof(argv) / sizeof(*argv)){ error("Too many arguments."); return NULL; } |