Skip to content

Commit 58f8905

Browse files
committed
Only one check suffices (if *buf, it's > 0)
1 parent a3852a6 commit 58f8905

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nnn.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ replace_escape(const char *str)
787787
mbstowcs(wbuf, str, PATH_MAX);
788788

789789
while (*buf) {
790-
if ((*buf >= '\x01' && *buf <= '\x1f') || *buf == '\x7f')
790+
if (*buf <= '\x1f' || *buf == '\x7f')
791791
*buf = '\?';
792792

793793
buf++;

0 commit comments

Comments
 (0)