From: Todd C. Miller Date: Sat, 16 Jul 2016 22:22:40 +0000 (-0600) Subject: Make arg_size and arg_len unsigned since we do bitwise operations X-Git-Tag: SUDO_1_8_18^2~125 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0f816c44017107d4b1f7d2e29c4587eeb4d82b35;p=sudo Make arg_size and arg_len unsigned since we do bitwise operations on them. --- diff --git a/plugins/sudoers/toke_util.c b/plugins/sudoers/toke_util.c index e7bc37f01..814018621 100644 --- a/plugins/sudoers/toke_util.c +++ b/plugins/sudoers/toke_util.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 1998-2005, 2007-2015 + * Copyright (c) 1996, 1998-2005, 2007-2016 * Todd C. Miller * * Permission to use, copy, modify, and distribute this software for any @@ -41,8 +41,8 @@ #include "toke.h" #include -static int arg_len = 0; -static int arg_size = 0; +static unsigned int arg_len = 0; +static unsigned int arg_size = 0; bool fill_txt(const char *src, size_t len, size_t olen) @@ -127,7 +127,7 @@ fill_cmnd(const char *src, size_t len) bool fill_args(const char *s, size_t len, int addspace) { - int new_len; + unsigned int new_len; char *p; debug_decl(fill_args, SUDOERS_DEBUG_PARSER)