diff options
Diffstat (limited to 'misc/mc/files/patch-src-wtools.c')
-rw-r--r-- | misc/mc/files/patch-src-wtools.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/misc/mc/files/patch-src-wtools.c b/misc/mc/files/patch-src-wtools.c new file mode 100644 index 000000000000..4a85fdde2e52 --- /dev/null +++ b/misc/mc/files/patch-src-wtools.c @@ -0,0 +1,12 @@ +--- src/wtools.c.orig Thu Nov 14 13:25:19 2002 ++++ src/wtools.c Tue Jun 15 03:15:09 2004 +@@ -412,8 +412,7 @@ + /* we need a unique name for tkname because widget.c:history_tool() + needs a unique name for each dialog - using the header is ideal */ + +- strncpy (tk_name + 3, header, 60); +- tk_name[63] = '\0'; ++ g_strlcpy (tk_name + 3, header, 61); + quick_widgets[2].tkname = tk_name; + + len = max (strlen (header), msglen (text, &lines)) + 4; |