diff options
author | joda <joda> | 2000-08-22 13:45:41 +0000 |
---|---|---|
committer | joda <joda> | 2000-08-22 13:45:41 +0000 |
commit | bc87b43afd03ee97c1b2fad801e82aaff95646f4 (patch) | |
tree | d42d62aceb7fd7c82bf0cb46c8dcdfa97004fc64 | |
parent | e2f62d98e266845f66c540c5b37c263399136a64 (diff) | |
download | pkgsrc-bc87b43afd03ee97c1b2fad801e82aaff95646f4.tar.gz |
use local buffer in fnid instead of allocating lots of memory
-rw-r--r-- | devel/id-utils/patches/patch-ad | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/devel/id-utils/patches/patch-ad b/devel/id-utils/patches/patch-ad new file mode 100644 index 00000000000..7266a4fef5f --- /dev/null +++ b/devel/id-utils/patches/patch-ad @@ -0,0 +1,13 @@ +$NetBSD: patch-ad,v 1.1 2000/08/22 13:45:41 joda Exp $ + +--- src/fnid.c.orig 2000/08/22 13:05:33 ++++ src/fnid.c 2000/08/22 13:23:12 +@@ -174,7 +174,7 @@ + + for ( ; members < members_N; members++) + { +- char *file_name = ALLOCA (char, PATH_MAX); ++ char file_name[PATH_MAX]; + maybe_relative_file_name (file_name, *members, cw_dlink); + for (patv = patv_0; patv < patv_N; patv++) + { |