From 49bcea84fd7d477da7b026eb6bd44a484573e83b Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Sun, 17 Jun 2018 08:39:31 +0200 Subject: [PATCH] mescc: Debugging oops. * lib/libc.c (__mes_debug): Oops, wrong direction. --- lib/libc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }