gentoo-ebuilds/app-forensics/mac-robber/files/mac-robber-1.02-posix.patch
David Seifert 742f324603
app-forensics/mac-robber: update EAPI 6 -> 8
Closes: https://bugs.gentoo.org/712634
Signed-off-by: David Seifert <soap@gentoo.org>
2023-10-08 20:32:25 +02:00

19 lines
548 B
Diff

--- a/mac-robber.c
+++ b/mac-robber.c
@@ -45,6 +45,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
+#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -238,7 +239,7 @@
/* Make a buffer for the full path
* the 2 is for 1 NULL and 1 '/' for recursive directories
*/
- path_len = dir_len + MAXNAMLEN + 2;
+ path_len = dir_len + NAME_MAX + 2;
if (!(curpath = (char *) malloc(path_len))) {
printf("error allocating space for curpath\n");
exit(1);