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/screen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mbbsd/screen.c') diff --git a/mbbsd/screen.c b/mbbsd/screen.c index 2650f5f9..59032a85 100644 --- a/mbbsd/screen.c +++ b/mbbsd/screen.c @@ -1,4 +1,4 @@ -/* $Id: screen.c,v 1.6 2002/07/21 09:26:02 in2 Exp $ */ +/* $Id: screen.c,v 1.7 2002/07/21 20:39:34 kcwu Exp $ */ #include "bbs.h" #ifdef SUPPORT_GB @@ -336,7 +336,7 @@ parsecolor(char *buf) } val = (char *)strtok(NULL, ";"); } - strlcpy(buf, data, sizeof(buf)); + strlcpy(buf, data, SIZEOF(buf)); } #define NORMAL (00) -- cgit v1.2.3