Explorar el Código

Get rid of redundant buffer

master
Arun Prakash Jana hace 5 años
padre
commit
fb4728bc31
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: A75979F35C080412
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. +1
    -2
      src/nnn.c

+ 1
- 2
src/nnn.c Ver fichero

@@ -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];
}


Cargando…
Cancelar
Guardar