aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 2a7da5e..97f2079 100644
--- 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];
}