Original commit message from CVS:
* gst/subparse/samiparse.c: (handle_start_font):
Don't ignore return value of strtol (++compiler_happiness).
+2006-05-18 Tim-Philipp Müller <tim at centricular dot net>
+
+ * gst/subparse/samiparse.c: (handle_start_font):
+ Don't ignore return value of strtol (++compiler_happiness).
+
2006-05-17 Tim-Philipp Müller <tim at centricular dot net>
Patch by: Young-Ho Cha <ganadist chollian net>
if (!(*value == '#' && len == 7)) {
gchar *r;
- strtol ((const char *) value, &r, 16); /* trying onvert hex */
- if (((xmlChar *) r == (value + 6) && len == 6)) {
+ /* check if it looks like hex */
+ if (strtol ((const char *) value, &r, 16) >= 0 &&
+ ((xmlChar *) r == (value + 6) && len == 6)) {
sharp = "#";
}
}