summaryrefslogtreecommitdiffstats
path: root/mbbsd/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/io.c')
-rw-r--r--mbbsd/io.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mbbsd/io.c b/mbbsd/io.c
index b3188145..b933616a 100644
--- a/mbbsd/io.c
+++ b/mbbsd/io.c
@@ -872,7 +872,7 @@ oldgetdata(int line, int col, const char *prompt, char *buf, int len, int echo)
#ifdef DBCSAWARE
if(currchar > 0 &&
ISDBCSAWARE() &&
- getDBCSstatus(buf, currchar) == DBCS_TRAILING)
+ getDBCSstatus((unsigned char*)buf, currchar) == DBCS_TRAILING)
currchar --;
#endif
}
@@ -884,7 +884,7 @@ oldgetdata(int line, int col, const char *prompt, char *buf, int len, int echo)
#ifdef DBCSAWARE
if(buf[currchar] &&
ISDBCSAWARE() &&
- getDBCSstatus(buf, currchar) == DBCS_TRAILING)
+ getDBCSstatus((unsigned char*)buf, currchar) == DBCS_TRAILING)
currchar++;
#endif
}
@@ -895,7 +895,7 @@ oldgetdata(int line, int col, const char *prompt, char *buf, int len, int echo)
#ifdef DBCSAWARE
int dbcs_off = 1;
if (ISDBCSAWARE() &&
- getDBCSstatus(buf, currchar-1) == DBCS_TRAILING)
+ getDBCSstatus((unsigned char*)buf, currchar-1) == DBCS_TRAILING)
dbcs_off = 2;
#endif
currchar -= dbcs_off;
@@ -934,7 +934,7 @@ oldgetdata(int line, int col, const char *prompt, char *buf, int len, int echo)
#ifdef DBCSAWARE
int dbcs_off = 1;
if (ISDBCSAWARE() && buf[currchar+1] &&
- getDBCSstatus(buf, currchar+1) == DBCS_TRAILING)
+ getDBCSstatus((unsigned char*)buf, currchar+1) == DBCS_TRAILING)
dbcs_off = 2;
#endif
clen -= dbcs_off;