minor fix

This commit is contained in:
Zi Zhou
2017-03-02 07:01:46 +00:00
parent dc1f721e66
commit d391b8b5d7

View File

@@ -328,7 +328,7 @@ static void
make_printable__(char* string, int size)
{
char* p;
for(p = string; p && *p & size; p++) {
for(p = string; p && *p && size; p++) {
if(!isprint(*p)) {
*p = '?';
}