summaryrefslogtreecommitdiff
path: root/misc/mc/files/patch-src-man2hlp.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/mc/files/patch-src-man2hlp.c')
-rw-r--r--misc/mc/files/patch-src-man2hlp.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/misc/mc/files/patch-src-man2hlp.c b/misc/mc/files/patch-src-man2hlp.c
new file mode 100644
index 000000000000..16f2758c1d5f
--- /dev/null
+++ b/misc/mc/files/patch-src-man2hlp.c
@@ -0,0 +1,12 @@
+--- src/man2hlp.c.orig Tue Jan 21 05:23:42 2003
++++ src/man2hlp.c Tue Jun 15 03:15:09 2004
+@@ -611,8 +611,7 @@
+ /* Bold text or italics text */
+ if (buffer[0] == '.' && (buffer[1] == 'I' || buffer[1] == 'B'))
+ for (buffer += 2; *buffer == ' ' || *buffer == '\t'; buffer++);
+- strncpy (old, buffer, sizeof (old) - 1);
+- old[sizeof (old) - 1] = 0;
++ g_strlcpy (old, buffer, sizeof (old));
+ link_flag = 3;
+ break;
+ case 3: