diff --git a/lib/libc.c b/lib/libc.c index 99b28e30..4c53ba2c 100644 --- a/lib/libc.c +++ b/lib/libc.c @@ -58,7 +58,7 @@ __mes_debug () if (__mes_debug == -1) { char *p = getenv ("MES_DEBUG"); - __mes_debug = p ? MAX (itoa (p), 1) : 0; + __mes_debug = p ? MAX (atoi (p), 1) : 0; } return __mes_debug; }