Ver código fonte

Only one check suffices (if *buf, it's > 0)

master
Arun Prakash Jana 7 anos atrás
pai
commit
58f8905ea3
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados ID da chave GPG: A75979F35C080412
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      nnn.c

+ 1
- 1
nnn.c Ver arquivo

@@ -787,7 +787,7 @@ replace_escape(const char *str)
mbstowcs(wbuf, str, PATH_MAX);

while (*buf) {
if ((*buf >= '\x01' && *buf <= '\x1f') || *buf == '\x7f')
if (*buf <= '\x1f' || *buf == '\x7f')
*buf = '\?';

buf++;


||||||
x
 
000:0
Carregando…
Cancelar
Salvar