ports/misc/mc/files/patch-src-wtools.c
Max Khon 694ecd186a - Fix CAN-2004-0226, CAN-2004-0231, CAN-2004-0232.
- Do not use :: in patch file names.
- Patch for CAN-2003-1023 is now contained in patch-vfs-direntry.c.
- Bump PORTREVISION.

Submitted by:	Jakub Jelinek <jakub@redhat.com>
2004-06-14 20:56:00 +00:00

12 lines
461 B
C

--- 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;