mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-10 17:05:39 +00:00
21 lines
388 B
Diff
21 lines
388 B
Diff
|
--- a/libbb/printable_string.c
|
||
|
+++ b/libbb/printable_string.c
|
||
|
@@ -31,8 +31,6 @@ const char* FAST_FUNC printable_string(u
|
||
|
}
|
||
|
if (c < ' ')
|
||
|
break;
|
||
|
- if (c >= 0x7f)
|
||
|
- break;
|
||
|
s++;
|
||
|
}
|
||
|
|
||
|
@@ -45,7 +43,7 @@ const char* FAST_FUNC printable_string(u
|
||
|
unsigned char c = *d;
|
||
|
if (c == '\0')
|
||
|
break;
|
||
|
- if (c < ' ' || c >= 0x7f)
|
||
|
+ if (c < ' ')
|
||
|
*d = '?';
|
||
|
d++;
|
||
|
}
|