aboutsummaryrefslogtreecommitdiff
path: root/src/prefs.c
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/prefs.c
parent0f8d3658489e2d68f8624df8465cbbc69fdf2327 (diff)
s/atoi/strtol/g
Diffstat (limited to 'src/prefs.c')
-rw-r--r--src/prefs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/prefs.c b/src/prefs.c
index f81a51eb..f40c1a57 100644
--- a/src/prefs.c
+++ b/src/prefs.c
@@ -117,7 +117,7 @@ static int Prefs_parse_pair(char *name, char *value, const SymNode_t *symbols,
*(DilloUrl **)node->pref = a_Url_new(value, NULL);
break;
case PREFS_INT32:
- *(int32_t *)node->pref = atoi(value);
+ *(int32_t *)node->pref = strtol(value, NULL, 10);
break;
case PREFS_DOUBLE:
*(double *)node->pref = strtod(value, NULL);