diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-07-22 04:39:34 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-07-22 04:39:34 +0800 |
commit | 1357136003927f736b8d3e91c1970d4cc7861977 (patch) | |
tree | c3ae703bebaadc6d54926280fa0721718e50703f /mbbsd/args.c | |
parent | 290e94c252bf0d1b384b3775cd9de04f5afa341a (diff) | |
download | pttbbs-1357136003927f736b8d3e91c1970d4cc7861977.tar pttbbs-1357136003927f736b8d3e91c1970d4cc7861977.tar.gz pttbbs-1357136003927f736b8d3e91c1970d4cc7861977.tar.bz2 pttbbs-1357136003927f736b8d3e91c1970d4cc7861977.tar.lz pttbbs-1357136003927f736b8d3e91c1970d4cc7861977.tar.xz pttbbs-1357136003927f736b8d3e91c1970d4cc7861977.tar.zst pttbbs-1357136003927f736b8d3e91c1970d4cc7861977.zip |
check the using of `sizeof' with strlcpy()
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@432 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/args.c')
-rw-r--r-- | mbbsd/args.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/args.c b/mbbsd/args.c index d1291176..e517b512 100644 --- a/mbbsd/args.c +++ b/mbbsd/args.c @@ -1,4 +1,4 @@ -/* $Id: args.c,v 1.5 2002/07/21 09:26:02 in2 Exp $ */ +/* $Id: args.c,v 1.6 2002/07/21 20:39:34 kcwu Exp $ */ #include "bbs.h" #ifdef HAVE_SETPROCTITLE @@ -49,7 +49,7 @@ do_setproctitle(const char *cmdline) if (i > LastArgv - Argv[0] - 2) { i = LastArgv - Argv[0] - 2; } - strlcpy(Argv[0], buf, sizeof(Argv[0]); + strlcpy(Argv[0], buf, SIZEOF(Argv[0]); p = &Argv[0][i]; while (p < LastArgv) *p++ = '\0'; |