summaryrefslogtreecommitdiff
path: root/src/prefs.c
diff options
context:
space:
mode:
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);