From 256988db2ddd0999cc64f55250062f0382b6cf49 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Mon, 12 Mar 2012 19:52:28 -0500 Subject: change local guint8 fields that get left-shifted to guint32 to prevent overflow, as reported by coverity in lp bug #944234 --- src/generate-id.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/generate-id.c b/src/generate-id.c index 14d762e..9515860 100644 --- a/src/generate-id.c +++ b/src/generate-id.c @@ -26,10 +26,10 @@ with this program. If not, see . guint32 generate_id (const AppIndicatorCategory catenum, const gchar * id) { - guchar category = 0; - guchar first = 0; - guchar second = 0; - guchar third = 0; + guint32 category = 0; + guint32 first = 0; + guint32 second = 0; + guint32 third = 0; switch (catenum) { case APP_INDICATOR_CATEGORY_OTHER: -- cgit v1.2.3