diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-03-12 19:52:28 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-03-12 19:52:28 -0500 |
commit | 256988db2ddd0999cc64f55250062f0382b6cf49 (patch) | |
tree | fca78281fe90df878a4d42c750f1ad050dbfae44 | |
parent | ec7981d1a89f5c4a87b0a3d0e3ca8e07cc178f9a (diff) | |
download | ayatana-indicator-application-256988db2ddd0999cc64f55250062f0382b6cf49.tar.gz ayatana-indicator-application-256988db2ddd0999cc64f55250062f0382b6cf49.tar.bz2 ayatana-indicator-application-256988db2ddd0999cc64f55250062f0382b6cf49.zip |
change local guint8 fields that get left-shifted to guint32 to prevent overflow, as reported by coverity in lp bug #944234
-rw-r--r-- | src/generate-id.c | 8 |
1 files 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 <http://www.gnu.org/licenses/>. 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: |