2014-10-27 11:22:15 +00:00
|
|
|
--- a/libbb/printable_string.c
|
|
|
|
+++ b/libbb/printable_string.c
|
2015-10-30 15:18:17 +00:00
|
|
|
@@ -28,8 +28,6 @@ const char* FAST_FUNC printable_string(u
|
2014-10-27 11:22:15 +00:00
|
|
|
}
|
|
|
|
if (c < ' ')
|
|
|
|
break;
|
|
|
|
- if (c >= 0x7f)
|
|
|
|
- break;
|
|
|
|
s++;
|
|
|
|
}
|
|
|
|
|
2015-10-30 15:18:17 +00:00
|
|
|
@@ -42,7 +40,7 @@ const char* FAST_FUNC printable_string(u
|
2014-10-27 11:22:15 +00:00
|
|
|
unsigned char c = *d;
|
|
|
|
if (c == '\0')
|
|
|
|
break;
|
|
|
|
- if (c < ' ' || c >= 0x7f)
|
|
|
|
+ if (c < ' ')
|
|
|
|
*d = '?';
|
|
|
|
d++;
|
|
|
|
}
|