diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2011-09-29 20:25:04 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-10-03 10:49:49 -0400 |
commit | f8bdb0c652f111ae59ac70a8e93bb40d32bec40d (patch) | |
tree | 0abc5a9d6ca26ff06c8d80748dcae63d56c35f4a /src/db/sysdb.c | |
parent | 2f0eb4434eab740b0cdb2e33f2a2f0d3fbe143b7 (diff) | |
download | sssd_unused-f8bdb0c652f111ae59ac70a8e93bb40d32bec40d.tar.gz sssd_unused-f8bdb0c652f111ae59ac70a8e93bb40d32bec40d.tar.xz sssd_unused-f8bdb0c652f111ae59ac70a8e93bb40d32bec40d.zip |
Use explicit base 10 for converting strings to integers
https://fedorahosted.org/sssd/ticket/1013
Diffstat (limited to 'src/db/sysdb.c')
-rw-r--r-- | src/db/sysdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db/sysdb.c b/src/db/sysdb.c index cae8b457..4286589e 100644 --- a/src/db/sysdb.c +++ b/src/db/sysdb.c @@ -372,7 +372,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; |