Re: [evolution-patches] mail config: spell color formatting fix



-       fprintf (rc, "        GtkHTML::spell_error_color =
\"#%2x%2x%2x\"\n",
+       fprintf (rc, "        GtkHTML::spell_error_color =
\"#%02x%02x%02x\"\n",
                 red >> 8, green >> 8, blue >> 8);


FWIW this should probably use

(red >> 8) & 0xff

etc.

Since %02x will not truncate the output if it is larger than 2 chars
(and neither will %02.2x work).

(not an issue with this patch tho)






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]