Allow utf8 in occupants header char

This commit is contained in:
Michael Vetter
2021-10-22 16:51:15 +02:00
parent 1c96115f97
commit a9bcc8e8bd
6 changed files with 24 additions and 29 deletions

View File

@@ -1354,11 +1354,13 @@ cons_occupants_setting(void)
int size = prefs_get_occupants_size();
cons_show("Occupants size (/occupants) : %d", size);
char header_ch = prefs_get_occupants_header_char();
if (header_ch)
cons_show("Occupants header char (/occupants) : %c", header_ch);
else
char* header_ch = prefs_get_occupants_header_char();
if (header_ch) {
cons_show("Occupants header char (/occupants) : %s", header_ch);
free(header_ch);
} else {
cons_show("Occupants header char (/occupants) : none");
}
}
void