projects
/
mmh
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f2a144
)
More sensible check for 7bit ASCII
author
markus schnalke
<meillo@marmaro.de>
Tue, 3 Nov 2015 07:37:57 +0000
(08:37 +0100)
committer
markus schnalke
<meillo@marmaro.de>
Wed, 4 Nov 2015 17:37:58 +0000
(18:37 +0100)
Always true condition reported by -Wextra -pendatic.
uip/send.c
patch
|
blob
|
history
diff --git
a/uip/send.c
b/uip/send.c
index
bab1699
..
df81340
100644
(file)
--- a/
uip/send.c
+++ b/
uip/send.c
@@
-322,10
+322,10
@@
sendsbr(char **vec, int vecp, char *drft, struct stat *st)
static int
contains_non_ascii(char *str)
{
- char *cp;
+ unsigned char *cp;
for (cp = str; *cp; cp++) {
- if (*cp > 127 || *cp < 0) {
+ if (*cp > 127) {
return 1;
}
}