}
wc[i] = 0;
if (wcstombs(buf, wc, sizeof(buf)) <= sizeof(buf)-1)
- fputs(printable_string(NULL, buf), stdout);
+ fputs(printable_string(buf), stdout);
#else
char buf[37];
int i = 0;
while (i < ARRAY_SIZE(buf)-1) {
if (s[i] == 0)
break;
- buf[i] = (s[i] < 0x7f) ? s[i] : '?';
+ buf[i] = (0x20 <= s[i] && s[i] < 0x7f) ? s[i] : '?';
i++;
}
buf[i] = '\0';
- fputs(printable_string(NULL, buf), stdout);
+ fputs(buf, stdout);
#endif
}
init_unicode();
if (!global_crc32_table) {
- global_crc32_table = crc32_filltable(NULL, 0);
+ global_crc32_new_table_le();
}
crc = SWAP_LE32(gpt_hdr->hdr_crc32);