From 0f816c44017107d4b1f7d2e29c4587eeb4d82b35 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sat, 16 Jul 2016 16:22:40 -0600 Subject: [PATCH] Make arg_size and arg_len unsigned since we do bitwise operations on them. --- plugins/sudoers/toke_util.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) -- 2.50.1