diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2011-09-29 20:25:04 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-10-26 10:29:39 -0400 |
commit | a7653913cfdf5a199989f38dccae0d62068eef68 (patch) | |
tree | 3c96f1f35a9610e53bfe005d67d540805bd2e480 /src/db/sysdb.c | |
parent | 7ab67b716a104fc7676f9be296e2f2c2838d99fd (diff) | |
download | sssd-a7653913cfdf5a199989f38dccae0d62068eef68.tar.gz sssd-a7653913cfdf5a199989f38dccae0d62068eef68.tar.xz sssd-a7653913cfdf5a199989f38dccae0d62068eef68.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 a1c16318c..41ee733f9 100644 --- a/src/db/sysdb.c +++ b/src/db/sysdb.c @@ -325,7 +325,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; |