projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
less horrible strncpy's
[apps/madmutt.git]
/
menu.c
diff --git
a/menu.c
b/menu.c
index
1c4e7b9
..
42f411c
100644
(file)
--- a/
menu.c
+++ b/
menu.c
@@
-140,7
+140,7
@@
static void print_enriched_string (int attr, unsigned char *s, int do_color)
static void menu_make_entry (char *s, int l, MUTTMENU * menu, int i)
{
if (menu->dialog) {
-
strncpy (s, menu->dialog[i], l
);
+
m_strcpy(s, l, menu->dialog[i]
);
menu->current = -1; /* hide menubar */
}
else