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:36 -0400 |
commit | 519c9ac794ec4ad95ff43fbadf688fe39e745128 (patch) | |
tree | c795f80334faf96fd2bb35c769c1c4fb2c14505e /src/db/sysdb.c | |
parent | b21db8aeb3b8ee2148e884fa5aa65fd477181669 (diff) | |
download | sssd-519c9ac794ec4ad95ff43fbadf688fe39e745128.tar.gz sssd-519c9ac794ec4ad95ff43fbadf688fe39e745128.tar.xz sssd-519c9ac794ec4ad95ff43fbadf688fe39e745128.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 880cd622b..ced69b250 100644 --- a/src/db/sysdb.c +++ b/src/db/sysdb.c @@ -364,7 +364,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; |