diff options
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | pango/pango-utils.c | 2 |
2 files changed, 9 insertions, 1 deletions
@@ -1,5 +1,13 @@ 2006-02-09 Behdad Esfahbod <behdad@gnome.org> + Bug 330602 – pango_parse_weight + Reported by Morten Welinder. + + * pango/pango-utils.c (pango_parse_weight): Pass 10 as base to + strtol. + +2006-02-09 Behdad Esfahbod <behdad@gnome.org> + Bug 314548 – pango_shape() is missing const correctness Patch from Antoine Dopffer. diff --git a/pango/pango-utils.c b/pango/pango-utils.c index 9c570230..7758c27f 100644 --- a/pango/pango-utils.c +++ b/pango/pango-utils.c @@ -817,7 +817,7 @@ pango_parse_weight (const char *str, { char *end; - *weight = strtol (str, &end, 0); + *weight = strtol (str, &end, 10); if (*end != '\0') { if (warn) |