aboutsummaryrefslogtreecommitdiffstats
path: root/set_ramps_fun.h
diff options
context:
space:
mode:
Diffstat (limited to 'set_ramps_fun.h')
-rw-r--r--set_ramps_fun.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/set_ramps_fun.h b/set_ramps_fun.h
index 5a3b541..a177568 100644
--- a/set_ramps_fun.h
+++ b/set_ramps_fun.h
@@ -12,7 +12,7 @@ size_t i, n;
int e;
/* Get the size of the gamma ramps */
-if (libgamma_get_crtc_information(&info, this, LIBGAMMA_CRTC_INFO_GAMMA_SIZE)) {
+if (libgamma_get_crtc_information(&info, sizeof(info), this, LIBGAMMA_CRTC_INFO_GAMMA_SIZE)) {
e = info.gamma_size_error;
if (e < 0)
return e;