From 9081b77f56ad759bffbdd134ada3af40054531b4 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Sat, 14 Dec 2002 15:37:56 +0000 Subject: [w3m-dev 03571] base=0 -> 10 in toNumber() * parsetagx.c (toNumber): strtol base=10 From: Hironori SAKAMOTO --- ChangeLog | 7 ++++++- parsetagx.c | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index ccdb14a..07c6854 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-12-15 Hironori SAKAMOTO + + * [w3m-dev 03571] base=0 -> 10 in toNumber() + * parsetagx.c (toNumber): strtol base=10 + 2002-12-15 Hironori SAKAMOTO * [w3m-dev 03570] meta tag in frame @@ -5863,4 +5868,4 @@ a * [w3m-dev 03276] compile error on EWS4800 * release-0-2-1 * import w3m-0.2.1 -$Id: ChangeLog,v 1.621 2002/12/14 15:28:37 ukai Exp $ +$Id: ChangeLog,v 1.622 2002/12/14 15:37:56 ukai Exp $ diff --git a/parsetagx.c b/parsetagx.c index dad45c8..eaaf1a9 100644 --- a/parsetagx.c +++ b/parsetagx.c @@ -1,4 +1,4 @@ -/* $Id: parsetagx.c,v 1.10 2002/10/16 18:11:15 ukai Exp $ */ +/* $Id: parsetagx.c,v 1.11 2002/12/14 15:37:56 ukai Exp $ */ #include "fm.h" #include "myctype.h" #include "indep.h" @@ -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; -- cgit v1.2.3