diff options
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/io.c | 4 | ||||
-rw-r--r-- | mbbsd/kaede.c | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -408,8 +408,8 @@ strip_ansi(char *buf, char *str, int mode) /* E0 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* F0 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }; -#define isEscapeParam(X) (EscapeFlag[(X)] & 1) -#define isEscapeCommand(X) (EscapeFlag[(X)] & 2) +#define isEscapeParam(X) (EscapeFlag[(int)(X)] & 1) +#define isEscapeCommand(X) (EscapeFlag[(int)(X)] & 2) for(; *str; ++str) if( *str != '\033' ){ diff --git a/mbbsd/kaede.c b/mbbsd/kaede.c index 42730c1f..a5008b10 100644 --- a/mbbsd/kaede.c +++ b/mbbsd/kaede.c @@ -48,8 +48,8 @@ Ptt_prints(char *str, int mode) w += snprintf(&strbuf[w], sizeof(strbuf) - w, "%d", cuser.money); break; + /* It's saver not to send these undefined escape string. default: - /* It's saver not to send these undefined escape string. strbuf[w++] = '\033'; strbuf[w++] = '*'; strbuf[w++] = str[r]; |