From 864745b55e0ebb30cab010a0d8a9677d0d8b3e52 Mon Sep 17 00:00:00 2001 From: Laurent MONIN Date: Tue, 17 Jan 2006 00:48:25 +0100 Subject: [PATCH] Make 8-bytes buffer more obvious. --- src/util/color.c | 2 +- src/util/color.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/color.c b/src/util/color.c index a9f258f9f..0926fcefd 100644 --- a/src/util/color.c +++ b/src/util/color.c @@ -148,7 +148,7 @@ get_color_string(color_T color, unsigned char hexcolor[8]) } void -color_to_string(color_T color, unsigned char str[]) +color_to_string(color_T color, unsigned char str[8]) { snprintf(str, 8, "#%06lx", (unsigned long) color); } diff --git a/src/util/color.h b/src/util/color.h index 4c2db0de5..5e0240c82 100644 --- a/src/util/color.h +++ b/src/util/color.h @@ -21,7 +21,7 @@ unsigned char *get_color_string(color_T color, unsigned char hexcolor[8]); /* Translate rgb color to string in #rrggbb format. str should be a pointer to * a 8 bytes memory space. */ -void color_to_string(color_T color, unsigned char str[]); +void color_to_string(color_T color, unsigned char str[8]); /* Fastfind lookup management. */ void init_colors_lookup(void);