[gtk+] colorscale: Avoid invalid write
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] colorscale: Avoid invalid write
- Date: Mon, 17 Oct 2016 16:46:13 +0000 (UTC)
commit 6b01940194f84a7dc042e9561024a357702c88f7
Author: Timm Bäder <mail baedert org>
Date: Mon Oct 17 18:34:07 2016 +0200
colorscale: Avoid invalid write
gtk/gtkcolorscale.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcolorscale.c b/gtk/gtkcolorscale.c
index 7815455..e1bf973 100644
--- a/gtk/gtkcolorscale.c
+++ b/gtk/gtkcolorscale.c
@@ -106,7 +106,7 @@ gtk_color_scale_draw_trough (GtkColorScale *scale,
red = CLAMP (r * 255, 0, 255);
green = CLAMP (g * 255, 0, 255);
blue = CLAMP (b * 255, 0, 255);
- p[x] = (red << 16) | (green << 8) | blue;
+ p[hue_x] = (red << 16) | (green << 8) | blue;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]