diff options
author | Yang Tse <yangsita@gmail.com> | 2010-11-28 23:11:14 +0100 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2010-11-28 23:11:14 +0100 |
commit | 5db0a412ff6972e51ccddaf1e8d6a27c8de4990f (patch) | |
tree | 8c8cfa609c25c68929554ac1e24eaa4084683152 /lib/ldap.c | |
parent | cbe67a1b71f7098779b8c0cecccb60382cec2d20 (diff) |
atoi: remove atoi usage
Diffstat (limited to 'lib/ldap.c')
-rw-r--r-- | lib/ldap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ldap.c b/lib/ldap.c index d6556c905..529e45212 100644 --- a/lib/ldap.c +++ b/lib/ldap.c @@ -473,7 +473,7 @@ static void _ldap_trace (const char *fmt, ...) if(do_trace == -1) { const char *env = getenv("CURL_TRACE"); - do_trace = (env && atoi(env) > 0); + do_trace = (env && strtol(env, NULL, 10) > 0); } if(!do_trace) return; |