1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-01 03:36:26 -04:00

Use elinks_ulongcat() instead of snprintf().

This commit is contained in:
Laurent MONIN 2006-01-17 01:18:45 +01:00 committed by Laurent MONIN
parent 864745b55e
commit 3133db3474

View File

@ -13,6 +13,7 @@
#include "elinks.h"
#include "util/color.h"
#include "util/conv.h"
#include "util/fastfind.h"
#include "util/string.h"
@ -150,5 +151,6 @@ get_color_string(color_T color, unsigned char hexcolor[8])
void
color_to_string(color_T color, unsigned char str[8])
{
snprintf(str, 8, "#%06lx", (unsigned long) color);
str[0]='#';
elinks_ulongcat(&str[1], NULL, (unsigned long) color, 6, '0', 16, 0);
}