1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-15 07:56:36 +00:00
freebsd-ports/misc/mc/files/patch-vfs-smbfs.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
418 B
C

--- vfs/smbfs.c.orig Sat Jan 25 03:37:29 2003
+++ vfs/smbfs.c Tue Jun 15 03:15:09 2004
@@ -785,8 +785,7 @@
#endif
return NULL;
}
- strncpy(dirent_dest, smbfs_info->current->text, MC_MAXPATHLEN);
- dirent_dest[MC_MAXPATHLEN] = 0;
+ g_strlcpy(dirent_dest, smbfs_info->current->text, MC_MAXPATHLEN);
smbfs_info->current = smbfs_info->current->next;
compute_namelen(&smbfs_readdir_data.dent);