From 1357136003927f736b8d3e91c1970d4cc7861977 Mon Sep 17 00:00:00 2001 From: kcwu Date: Sun, 21 Jul 2002 20:39:34 +0000 Subject: check the using of `sizeof' with strlcpy() git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@432 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mbbsd/io.c') diff --git a/mbbsd/io.c b/mbbsd/io.c index f4fd4b28..1e748cc6 100644 --- a/mbbsd/io.c +++ b/mbbsd/io.c @@ -1,4 +1,4 @@ -/* $Id: io.c,v 1.20 2002/07/21 09:26:02 in2 Exp $ */ +/* $Id: io.c,v 1.21 2002/07/21 20:39:34 kcwu Exp $ */ #include "bbs.h" #if defined(linux) @@ -474,7 +474,7 @@ oldgetdata(int line, int col, char *prompt, char *buf, int len, int echo) buf[0] = ch | 32; #ifdef SUPPORT_GB if (echo == DOECHO && current_font_type == TYPE_GB) { - strlcpy(buf, hc_convert_str(buf, HC_GBtoBIG, HC_DO_SINGLE), sizeof(buf)); + strlcpy(buf, hc_convert_str(buf, HC_GBtoBIG, HC_DO_SINGLE), SIZEOF(buf)); } #endif return clen; -- cgit v1.2.3