nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit fb4728bc317ff90f8cc11055194fb3e0e4d33ec7
parent d803521c6dce88b9e75b1ebbe7d0551674cfab59
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Thu, 16 May 2019 21:41:20 +0530

Get rid of redundant buffer

Diffstat:
Msrc/nnn.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -537,12 +537,11 @@ static uint xatoi(const char *str) static char *xitoa(uint val) { - const char hexbuf[] = "0123456789"; static char ascbuf[32] = {0}; int i; for (i = 30; val && i; --i, val /= 10) - ascbuf[i] = hexbuf[val % 10]; + ascbuf[i] = '0' + (val % 10); return &ascbuf[++i]; }