aboutsummaryrefslogtreecommitdiff
path: root/src/cssparser.cc
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2009-02-01 15:46:08 -0300
committerJorge Arellano Cid <jcid@dillo.org>2009-02-01 15:46:08 -0300
commite26be9ffd737d51f6e9eb273a29014618edbd3b9 (patch)
tree1ec262bdea00487c8060e6c9a3cdb0ed9326f857 /src/cssparser.cc
parent0f8d3658489e2d68f8624df8465cbbc69fdf2327 (diff)
s/atoi/strtol/g
Diffstat (limited to 'src/cssparser.cc')
-rw-r--r--src/cssparser.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cssparser.cc b/src/cssparser.cc
index 5a45ec3b..9f0a457f 100644
--- a/src/cssparser.cc
+++ b/src/cssparser.cc
@@ -594,7 +594,7 @@ static bool Css_token_matches_property(CssParser * parser,
case CSS_TYPE_FONT_WEIGHT:
if (parser->ttype == CSS_TK_DECINT) {
- i = atoi(parser->tval);
+ i = strtol(parser->tval, NULL, 10);
return i >= 100 && i <= 900;
} else
return (parser->ttype == CSS_TK_SYMBOL &&
@@ -750,7 +750,7 @@ static bool Css_parse_value(CssParser * parser,
case CSS_TYPE_FONT_WEIGHT:
ival = 0;
if (parser->ttype == CSS_TK_DECINT) {
- ival = atoi(parser->tval);
+ ival = strtol(parser->tval, NULL, 10);
if (ival < 100 || ival > 900)
/* invalid */
ival = 0;