1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/misc/mc/files/patch-vfs-vfs.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
275 B
C

--- vfs/vfs.c.orig Thu Dec 26 08:21:43 2002
+++ vfs/vfs.c Tue Jun 15 03:15:09 2004
@@ -637,8 +637,7 @@
{
const char *cwd = mc_return_cwd();
- strncpy (buffer, cwd, size - 1);
- buffer [size - 1] = 0;
+ g_strlcpy (buffer, cwd, size);
return buffer;
}