aboutsummaryrefslogtreecommitdiffstats
path: root/legacy.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-03-08 00:21:02 +0100
committerMattias Andrée <maandree@kth.se>2021-03-08 00:21:02 +0100
commitb058098fdcc5d4ed9b81fdb17f64820c0360ad48 (patch)
treee39e5f547b900922775d466507c29b352f046a53 /legacy.c
parentmisc (diff)
downloadlibgamma-b058098fdcc5d4ed9b81fdb17f64820c0360ad48.tar.gz
libgamma-b058098fdcc5d4ed9b81fdb17f64820c0360ad48.tar.bz2
libgamma-b058098fdcc5d4ed9b81fdb17f64820c0360ad48.tar.xz
m + style fix + check memory allocation overflows
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--legacy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/legacy.c b/legacy.c
index 7e37ec3..550676d 100644
--- a/legacy.c
+++ b/legacy.c
@@ -62,7 +62,7 @@ libgamma_get_crtc_information(struct libgamma_crtc_information *restrict this,
struct libgamma_crtc_state *restrict crtc, int32_t fields)
{
return libgamma_get_crtc_information__new(this, offsetof(struct libgamma_crtc_information, gamma_error) +
- sizeof(this->gamma_error), crtc, (unsigned long long int)fields);
+ sizeof(this->gamma_error), crtc, (unsigned long long)fields);
}
int