diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2011-09-29 20:00:58 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-10-03 10:48:37 -0400 |
commit | 95d3cb8d4ff2e3e8fdc186f2ebf617fd29ddfdec (patch) | |
tree | 5cf4c7c585dda5455555334d3c32ff56ddce86d2 /src/db/sysdb_ops.c | |
parent | c98298029c51fdbc727536fec7a27795184d04e4 (diff) | |
download | sssd-95d3cb8d4ff2e3e8fdc186f2ebf617fd29ddfdec.tar.gz sssd-95d3cb8d4ff2e3e8fdc186f2ebf617fd29ddfdec.tar.xz sssd-95d3cb8d4ff2e3e8fdc186f2ebf617fd29ddfdec.zip |
Use explicit base 10 for converting strings to integers
https://fedorahosted.org/sssd/ticket/1013
Diffstat (limited to 'src/db/sysdb_ops.c')
-rw-r--r-- | src/db/sysdb_ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |