From 786d63f533b3cd2ff6cda0ef1797fdace352561c Mon Sep 17 00:00:00 2001 From: scw Date: Fri, 12 Mar 2004 05:42:52 +0000 Subject: Remove unused strcpy(). Add bbsmail into Makefile variable CPROG_WITHOUT_UTIL git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1588 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/convert.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mbbsd/convert.c') 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); -- cgit v1.2.3