summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mbbsd/convert.c4
-rw-r--r--mbbsd/kaede.c3
-rw-r--r--util/Makefile5
3 files changed, 5 insertions, 7 deletions
diff --git a/mbbsd/convert.c b/mbbsd/convert.c
index 1fcb078f..f07e21db 100644
--- a/mbbsd/convert.c
+++ b/mbbsd/convert.c
@@ -31,7 +31,7 @@ static int utf8_read(int fd, void *buf, size_t count)
{
count = read(fd, buf, count);
if (count > 0) {
- strcpy(buf, utf8_uni(buf, &count, 0));
+ utf8_uni(buf, &count, 0);
uni2big(buf, &count, 0);
((char *)buf)[count] = 0;
}
@@ -40,7 +40,7 @@ static int utf8_read(int fd, void *buf, size_t count)
static int utf8_write(int fd, void *buf, size_t count)
{
- strcpy(buf, big2uni(buf, &count, 0));
+ big2uni(buf, &count, 0);
uni_utf8(buf, &count, 0);
((char *)buf)[count] = 0;
return write(fd, buf, count);
diff --git a/mbbsd/kaede.c b/mbbsd/kaede.c
index 486e5aef..9023557d 100644
--- a/mbbsd/kaede.c
+++ b/mbbsd/kaede.c
@@ -58,8 +58,7 @@ Ptt_prints(char *str, int mode)
}
}
strbuf[w] = 0;
- strcpy(str, strbuf);
- strip_ansi(str, str, mode);
+ strip_ansi(str, strbuf, mode);
return str;
}
diff --git a/util/Makefile b/util/Makefile
index 693ee50e..6f946f7a 100644
--- a/util/Makefile
+++ b/util/Makefile
@@ -29,7 +29,7 @@ CPROG_WITHOUT_UTIL= \
shmsweep uhash_loader showboard antispam \
countalldice webgrep bbsrf initbbs \
userlist tunepasswd buildir merge_passwd \
- merge_board xchatd
+ merge_board xchatd bbsmail
# 下面這些程式會被 install
PROGS= ${UTIL_OBJS} ${CPROG_WITH_UTIL} ${CPROG_WITHOUT_UTIL} \
@@ -37,8 +37,7 @@ PROGS= ${UTIL_OBJS} ${CPROG_WITH_UTIL} ${CPROG_WITHOUT_UTIL} \
openticket.sh stock.sh topsong.sh weather.sh \
stock.perl weather.perl toplazyBM.sh toplazyBBM.sh \
dailybackup.pl tarqueue.pl waterball.pl filtermail.pl \
- getbackup.pl udnnews.pl rebuildaloha.pl railway_wrapper.pl\
- bbsmail
+ getbackup.pl udnnews.pl rebuildaloha.pl railway_wrapper.pl
all: ${CPROG_WITH_UTIL} ${CPROG_WITHOUT_UTIL} ${PROGS}