diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-01-12 13:00:08 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-01-12 13:00:08 +0800 |
commit | 927c9665ce01fdade6a0846ad60a561320272440 (patch) | |
tree | e84f4cb1a3aa4403408b96fd9aa4ecf6db84eab5 /mbbsd/menu.c | |
parent | 395dca515d5b5e9b6d5d3666b96b7fc573e12bc2 (diff) | |
download | pttbbs-927c9665ce01fdade6a0846ad60a561320272440.tar pttbbs-927c9665ce01fdade6a0846ad60a561320272440.tar.gz pttbbs-927c9665ce01fdade6a0846ad60a561320272440.tar.bz2 pttbbs-927c9665ce01fdade6a0846ad60a561320272440.tar.lz pttbbs-927c9665ce01fdade6a0846ad60a561320272440.tar.xz pttbbs-927c9665ce01fdade6a0846ad60a561320272440.tar.zst pttbbs-927c9665ce01fdade6a0846ad60a561320272440.zip |
replace some strncpy with strlcpy, or just strcpy if src is const
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3267 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/menu.c')
-rw-r--r-- | mbbsd/menu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/menu.c b/mbbsd/menu.c index 519fbf49..99c2c8ba 100644 --- a/mbbsd/menu.c +++ b/mbbsd/menu.c @@ -53,7 +53,7 @@ showtitle(const char *title, const char *mid) { board_hidden_status = ((getbcache(bid)->brdattr & BRD_HIDE) && (getbcache(bid)->brdattr & BRD_POSTMASK)); - strncpy(lastboard, currboard, sizeof(lastboard)); + strlcpy(lastboard, currboard, sizeof(lastboard)); } } |