summaryrefslogtreecommitdiff
path: root/src/db
diff options
context:
space:
mode:
Diffstat (limited to 'src/db')
-rw-r--r--src/db/sysdb.c2
-rw-r--r--src/db/sysdb_ops.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/db/sysdb.c b/src/db/sysdb.c
index eafa7fdc..1a326030 100644
--- a/src/db/sysdb.c
+++ b/src/db/sysdb.c
@@ -378,7 +378,7 @@ int sysdb_attrs_get_uint32_t(struct sysdb_attrs *attrs, const char *name,
}
errno = 0;
- val = strtouint32((const char *) el->values[0].data, &endptr, 0);
+ val = strtouint32((const char *) el->values[0].data, &endptr, 10);
if (errno != 0) return errno;
if (*endptr) return EINVAL;
diff --git a/src/db/sysdb_ops.c b/src/db/sysdb_ops.c
index 522bbb08..f4418e4e 100644
--- a/src/db/sysdb_ops.c
+++ b/src/db/sysdb_ops.c
@@ -60,7 +60,7 @@ static uint32_t get_attr_as_uint32(struct ldb_message *msg, const char *attr)
}
errno = 0;
- l = strtoll((const char *)v->data, NULL, 0);
+ l = strtoll((const char *)v->data, NULL, 10);
if (errno) {
return (uint32_t)-1;
}