1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-01-03 14:57:44 -05:00

Make 8-bytes buffer more obvious.

This commit is contained in:
Laurent MONIN 2006-01-17 00:48:25 +01:00 committed by Laurent MONIN
parent 28fbb9317b
commit 864745b55e
2 changed files with 2 additions and 2 deletions

View File

@ -148,7 +148,7 @@ get_color_string(color_T color, unsigned char hexcolor[8])
} }
void 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); snprintf(str, 8, "#%06lx", (unsigned long) color);
} }

View File

@ -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 /* Translate rgb color to string in #rrggbb format. str should be a pointer to
* a 8 bytes memory space. */ * 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. */ /* Fastfind lookup management. */
void init_colors_lookup(void); void init_colors_lookup(void);