diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2017-05-04 01:08:17 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2017-05-04 01:08:17 +0530 |
commit | 58f8905ea34fb7ee70fb4a459eaf03d832c004ce (patch) | |
tree | a97c7f5ecc29f49801a998266ca2ab75c33a3b9d | |
parent | a3852a6cb1c69f629e3728d68716129c2e50b620 (diff) | |
download | nnn-58f8905ea34fb7ee70fb4a459eaf03d832c004ce.tar.gz |
Only one check suffices (if *buf, it's > 0)
-rw-r--r-- | nnn.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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++; |