diff options
author | Thierry Deval <tdeval@cvs.openbsd.org> | 2003-04-04 23:04:37 +0000 |
---|---|---|
committer | Thierry Deval <tdeval@cvs.openbsd.org> | 2003-04-04 23:04:37 +0000 |
commit | af21411c6974d6f0daa1fc6bb7e44821b1329bdf (patch) | |
tree | 20acb41f613e9ffe5c3c40606965194fcf51e0ac | |
parent | e856ace1678453f6491116be45e9d30fa334b712 (diff) |
strcpy -> strlcpy
ok deraadt@
-rw-r--r-- | lib/libmenu/m_item_new.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libmenu/m_item_new.c b/lib/libmenu/m_item_new.c index fd3dc1c07b5..d5b9e8206b5 100644 --- a/lib/libmenu/m_item_new.c +++ b/lib/libmenu/m_item_new.c @@ -1,4 +1,4 @@ -/* $OpenBSD: m_item_new.c,v 1.7 2001/01/22 18:02:04 millert Exp $ */ +/* $OpenBSD: m_item_new.c,v 1.8 2003/04/04 23:04:36 tdeval Exp $ */ /**************************************************************************** * Copyright (c) 1998,2000 Free Software Foundation, Inc. * @@ -182,7 +182,7 @@ set_menu_mark (MENU * menu, const char * mark) menu->mark = (char *)malloc(l+1); if (menu->mark) { - strcpy(menu->mark, mark); + strlcpy(menu->mark, mark, l+1); if (menu != &_nc_Default_Menu) menu->status |= _MARK_ALLOCATED; } |