summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/core/parseopt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/parseopt.c b/src/core/parseopt.c
index ccaed3745..f0a3e7008 100644
--- a/src/core/parseopt.c
+++ b/src/core/parseopt.c
@@ -72,7 +72,7 @@ int parse_integer ( const char *text, unsigned int *value ) {
assert ( text != NULL );
/* Parse integer */
- *value = strtoul ( text, &endp, 10 );
+ *value = strtoul ( text, &endp, 0 );
if ( *endp ) {
printf ( "\"%s\": invalid integer value\n", text );
return -EINVAL;