summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--pango/pango-utils.c2
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 8058694f..20e2c35d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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)