tls: reorder a few more cipher ids
[oweals/busybox.git] / util-linux / fdisk_gpt.c
index 9b17b4a57440073c5caa02cf5656a57f3d8ab98e..dbe889f7c32681ef5efa7de0cf342df637661d17 100644 (file)
@@ -87,18 +87,18 @@ gpt_print_wide36(uint16_t *s)
        }
        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
 }
 
@@ -177,7 +177,7 @@ check_gpt_label(void)
 
        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);