From 592e9eca89d6ced6d5418a3db82c99268bd6fb3a Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 21 Dec 2008 08:51:18 +0100 Subject: [PATCH] Use more appropiate types in loops to avoid future overflows. --HG-- extra : convert_revision : 5376d21941333e5baa95cb4ee75dfe49ada351c6 --- utils/plist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/plist.c b/utils/plist.c index 1088bdd498..51eb06f49e 100644 --- a/utils/plist.c +++ b/utils/plist.c @@ -184,7 +184,7 @@ xbps_remove_pkg_dict_from_file(const char *pkg, const char *plist) prop_object_t obj; prop_object_iterator_t iter; const char *curpkg; - int i = 0; + size_t i = 0; pdict = prop_dictionary_internalize_from_file(plist); if (pdict == NULL) @@ -224,7 +224,7 @@ wr_plist: bool xbps_remove_string_from_array(prop_object_t obj, void *arg, bool *loop_done) { - static int idx; + static int64_t idx; struct callback_args *cb = arg; assert(prop_object_type(obj) == PROP_TYPE_STRING);