Browse Source

Check for U+2022 and replace it with "*" is unprintable

Luke Dashjr 12 years ago
parent
commit
2e52b23ec3
1 changed files with 3 additions and 0 deletions
  1. 3 0
      miner.c

+ 3 - 0
miner.c

@@ -3394,6 +3394,9 @@ void bfg_waddstr(WINDOW *win, const char *s)
 				wadd_wch(win, (w == 0x2500) ? WACS_HLINE : WACS_BTEE);
 				break;
 #endif
+			case 0x2022:
+				if (w > WCHAR_MAX || !iswprint(w))
+					w = '*';
 			default:
 #ifdef USE_UNICODE
 				if (w > WCHAR_MAX || !(iswprint(w) || w == '\n'))