# HG changeset patch # User Luke Schierer # Date 1054536176 0 # Node ID 8fa4a0d756a08e89380bf852ad6ebf14824fb9f9 # Parent c52a97f3739eff21eeb96cbe5aac415a84e38818 [gaim-migrate @ 6069] we should be saving 3 digits, because we use 3 digits internally. but this still doesn't fix the problem committer: Tailor Script diff -r c52a97f3739e -r 8fa4a0d756a0 src/gaimrc.c --- a/src/gaimrc.c Mon Jun 02 06:41:14 2003 +0000 +++ b/src/gaimrc.c Mon Jun 02 06:42:56 2003 +0000 @@ -933,7 +933,7 @@ fgcolor.blue = atoi(p->value[2]); fgcolor.green = atoi(p->value[1]); - g_snprintf(buf, sizeof(buf), "#%02x%02x%02x", + g_snprintf(buf, sizeof(buf), "#%03x%03x%03x", atoi(p->value[0]), atoi(p->value[2]), atoi(p->value[1])); gaim_prefs_set_string("/gaim/gtk/conversations/fgcolor", buf); @@ -944,9 +944,10 @@ bgcolor.blue = atoi(p->value[2]); bgcolor.green = atoi(p->value[1]); - g_snprintf(buf, sizeof(buf), "#%02x%02x%02x", + g_snprintf(buf, sizeof(buf), "#%03x%03x%03x", atoi(p->value[0]), atoi(p->value[2]), atoi(p->value[1])); gaim_prefs_set_string("/gaim/gtk/conversations/bgcolor", buf); + printf("\n\n%s\n\n",buf); } else if (!strcmp(p->option, "report_idle")) { switch(atoi(p->value[0])) {