[w3m-dev 03571] base=0 -> 10 in toNumber()

* parsetagx.c (toNumber): strtol base=10
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
This commit is contained in:
Fumitoshi UKAI
2002-12-14 15:37:56 +00:00
parent 74940c5a0d
commit 9081b77f56
2 changed files with 8 additions and 3 deletions

View File

@@ -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;