commit d76d62057cb2203999ba85684075fb2a535e1384
parent 5b0eadcbbcc94cfb200283360dba0c5e506aac79
Author: ukai <ukai>
Date: Sat, 14 Dec 2002 15:37:56 +0000
[w3m-dev 03571] base=0 -> 10 in toNumber()
* parsetagx.c (toNumber): strtol base=10
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat:
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,5 +1,10 @@
2002-12-15 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
+ * [w3m-dev 03571] base=0 -> 10 in toNumber()
+ * parsetagx.c (toNumber): strtol base=10
+
+2002-12-15 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
+
* [w3m-dev 03570] meta tag in frame
* frame.c (createFrameFile): fix meta equiv parse in frame
diff --git a/parsetagx.c b/parsetagx.c
@@ -45,7 +45,7 @@ toNumber(char *oval, int *num)
char *ep;
int x;
- x = strtol(oval, &ep, 0);
+ x = strtol(oval, &ep, 10);
if (ep > oval) {
*num = x;