diff options
Diffstat (limited to 'qsutil.c')
| -rw-r--r-- | qsutil.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -24,11 +24,11 @@ void nomem() { log1("alert: out of memory, sleeping...\n"); sleep(10); } | |||
| 24 | void pausedir(dir) char *dir; | 24 | void pausedir(dir) char *dir; |
| 25 | { log3("alert: unable to opendir ",dir,", sleeping...\n"); sleep(10); } | 25 | { log3("alert: unable to opendir ",dir,", sleeping...\n"); sleep(10); } |
| 26 | 26 | ||
| 27 | static int issafe(ch) char ch; | 27 | static int issafe(ch) unsigned char ch; |
| 28 | { | 28 | { |
| 29 | if (ch == '%') return 0; /* general principle: allman's code is crap */ | 29 | if (ch == '%') return 0; /* general principle: allman's code is crap */ |
| 30 | if (ch < 33) return 0; | 30 | if (ch < 33) return 0; |
| 31 | if (ch > 126) return 0; | 31 | if (ch > 126 && ch <= 127) return 0; |
| 32 | return 1; | 32 | return 1; |
| 33 | } | 33 | } |
| 34 | 34 | ||
