summaryrefslogtreecommitdiffstats
path: root/src/blueshift_randr_c.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-04-02 14:35:09 +0200
committerMattias Andrée <maandree@operamail.com>2014-04-02 14:35:09 +0200
commitc24ec2d55d0f023cabbffce88c9258fea0696cd4 (patch)
tree18664a6a01bfaa9dfc215549d88efd7272b72d9b /src/blueshift_randr_c.c
parentenable more warnings (diff)
downloadblueshift-c24ec2d55d0f023cabbffce88c9258fea0696cd4.tar.gz
blueshift-c24ec2d55d0f023cabbffce88c9258fea0696cd4.tar.bz2
blueshift-c24ec2d55d0f023cabbffce88c9258fea0696cd4.tar.xz
enable more warnings
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/blueshift_randr_c.c')
-rw-r--r--src/blueshift_randr_c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blueshift_randr_c.c b/src/blueshift_randr_c.c
index ddc19b9..fe3c708 100644
--- a/src/blueshift_randr_c.c
+++ b/src/blueshift_randr_c.c
@@ -206,7 +206,7 @@ uint16_t* blueshift_randr_read(int use_crtc)
G_gamma = xcb_randr_get_crtc_gamma_green(gamma_get_reply);
B_gamma = xcb_randr_get_crtc_gamma_blue(gamma_get_reply);
- r_gamma = malloc((3 + R_size + G_size + B_size) * sizeof(uint16_t));
+ r_gamma = malloc((3U + (size_t)R_size + (size_t)G_size + (size_t)B_size) * sizeof(uint16_t));
g_gamma = r_gamma + R_size + 1;
b_gamma = g_gamma + G_size + 1;
if (r_gamma == NULL)