diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | sftp.c | 4 |
2 files changed, 8 insertions, 2 deletions
@@ -1,3 +1,9 @@ | |||
1 | 20121030 | ||
2 | - (djm) OpenBSD CVS Sync | ||
3 | - markus@cvs.openbsd.org 2012/10/05 12:34:39 | ||
4 | [sftp.c] | ||
5 | fix signed vs unsigned warning; feedback & ok: djm@ | ||
6 | |||
1 | 20121019 | 7 | 20121019 |
2 | - (tim) [buildpkg.sh.in] Double up on some backslashes so they end up in | 8 | - (tim) [buildpkg.sh.in] Double up on some backslashes so they end up in |
3 | the generated file as intended. | 9 | the generated file as intended. |
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sftp.c,v 1.140 2012/09/21 10:55:04 dtucker Exp $ */ | 1 | /* $OpenBSD: sftp.c,v 1.141 2012/10/05 12:34:39 markus 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 | * |
@@ -991,7 +991,7 @@ makeargv(const char *arg, int *argcp, int sloppy, char *lastquote, | |||
991 | state = MA_START; | 991 | state = MA_START; |
992 | i = j = 0; | 992 | i = j = 0; |
993 | for (;;) { | 993 | for (;;) { |
994 | if (argc >= sizeof(argv) / sizeof(*argv)){ | 994 | if ((size_t)argc >= sizeof(argv) / sizeof(*argv)){ |
995 | error("Too many arguments."); | 995 | error("Too many arguments."); |
996 | return NULL; | 996 | return NULL; |
997 | } | 997 | } |