diff options
Diffstat (limited to 'mbbsd/stuff.c')
-rw-r--r-- | mbbsd/stuff.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mbbsd/stuff.c b/mbbsd/stuff.c index 7f5e495a..dd8bb969 100644 --- a/mbbsd/stuff.c +++ b/mbbsd/stuff.c @@ -428,7 +428,7 @@ vmsg_lines(const int lines, const char msg[]) int getans(const char *fmt,...) { - char msg[128] = {0}; + char msg[256] = {0}; va_list ap; va_start(ap, fmt); vsnprintf(msg, sizeof(msg), fmt, ap); @@ -439,15 +439,15 @@ getans(const char *fmt,...) int vmsg(const char *fmt,...) { - char msg[128] = "\033[1;36;44m ◆ ", i; + char msg[256] = "\033[1;36;44m ◆ ", i; va_list ap; va_start(ap, fmt); i = vsnprintf(msg+14, 100, fmt, ap); va_end(ap); - for(i=i+14; i<69; i++) + for(i=i+14; i<71; i++) *(msg+i) = ' '; - strcat(msg+69, - "\033[33;46m \033[200m\033[1431m\033[506m[請按任意鍵繼續]\033[201m \033[m"); + strcat(msg+71, + "\033[33;46m \033[200m\033[1431m\033[506m[按任意鍵繼續]\033[201m \033[m"); return vmsg_lines(b_lines, msg); } |