1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
freebsd-ports/misc/mc/files/patch-src-man2hlp.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

13 lines
433 B
C

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