summaryrefslogtreecommitdiffstats
path: root/mbbsd/pmore.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-03 20:01:16 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-03 20:01:16 +0800
commit7226ce15690f667be736c3070a0f540978407fca (patch)
treec6a237a2e0e3bbfd00a227bf142b17110bef2d58 /mbbsd/pmore.c
parent077a4d222ebe2d32998a264cb25e6a05dc7c8454 (diff)
downloadpttbbs-7226ce15690f667be736c3070a0f540978407fca.tar
pttbbs-7226ce15690f667be736c3070a0f540978407fca.tar.gz
pttbbs-7226ce15690f667be736c3070a0f540978407fca.tar.bz2
pttbbs-7226ce15690f667be736c3070a0f540978407fca.tar.lz
pttbbs-7226ce15690f667be736c3070a0f540978407fca.tar.xz
pttbbs-7226ce15690f667be736c3070a0f540978407fca.tar.zst
pttbbs-7226ce15690f667be736c3070a0f540978407fca.zip
artwork fix
- pmore: fixed non-ascii options being dropped - bbs: rollback modified mark to ~ git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3621 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/pmore.c')
-rw-r--r--mbbsd/pmore.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/mbbsd/pmore.c b/mbbsd/pmore.c
index 00e02992..e96510a8 100644
--- a/mbbsd/pmore.c
+++ b/mbbsd/pmore.c
@@ -2580,7 +2580,7 @@ int
mf_moviePromptOptions(
int isel, int maxsel,
int key,
- char *text, unsigned int szText)
+ unsigned char *text, unsigned int szText)
{
#define OPTATTR_NORMAL ANSI_COLOR(0;34;47)
#define OPTATTR_NORMAL_KEY ANSI_COLOR(0;31;47)
@@ -2588,7 +2588,7 @@ mf_moviePromptOptions(
#define OPTATTR_SELECTED_KEY ANSI_COLOR(0;31;46)
#define OPTATTR_BAR ANSI_COLOR(0;1;30;47)
- char *s = text;
+ unsigned char *s = text;
int printlen = 0;
// determine if we need seperator
if (maxsel)
@@ -2631,8 +2631,8 @@ mf_moviePromptOptions(
else
{
// default option text
- text = "¡¸";
- szText = strlen(text);
+ text = (unsigned char*)"¡¸";
+ szText = ustrlen(text);
}
if (szText)
@@ -2641,7 +2641,7 @@ mf_moviePromptOptions(
outs(OPTATTR_SELECTED);
else
outs(OPTATTR_NORMAL);
- outs_n(text, szText);
+ outs_n((char*)text, szText);
printlen += szText;
}
@@ -3068,7 +3068,7 @@ mf_movieOptionHandler(unsigned char *opt, unsigned char *end)
promptlen += mf_moviePromptOptions(
isel, maxsel, key,
- (char*)text, szText);
+ text, szText);
}
// handle selection