diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2013-01-29 12:14:02 -0600 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2013-01-29 12:14:02 -0600 |
commit | 3e9b3f1cd28e9c9e1263796297f5d648a163be9e (patch) | |
tree | 88817c7c7f21fc3c63395767e9c42acd588eefef /src | |
parent | 0793d596ca9934a0270c42876e1201319f515564 (diff) | |
download | libayatana-appindicator-3e9b3f1cd28e9c9e1263796297f5d648a163be9e.tar.gz libayatana-appindicator-3e9b3f1cd28e9c9e1263796297f5d648a163be9e.tar.bz2 libayatana-appindicator-3e9b3f1cd28e9c9e1263796297f5d648a163be9e.zip |
fix potential overflow reported by Coverity
Diffstat (limited to 'src')
-rw-r--r-- | src/generate-id.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/generate-id.c b/src/generate-id.c index 6389678..6208997 100644 --- a/src/generate-id.c +++ b/src/generate-id.c @@ -65,5 +65,5 @@ _generate_id (const AppIndicatorCategory catenum, const gchar * id) } } - return (((((category * 256) + first) * 256) + second) * 256) + third; + return (((((category << 8) + first) << 8) + second) << 8) + third; } |