diff options
author | joda <joda@pkgsrc.org> | 2000-08-22 13:45:41 +0000 |
---|---|---|
committer | joda <joda@pkgsrc.org> | 2000-08-22 13:45:41 +0000 |
commit | aaa9424d6f712dda61ef63abd5ded0adb785c073 (patch) | |
tree | d42d62aceb7fd7c82bf0cb46c8dcdfa97004fc64 /devel/id-utils | |
parent | 7f046624c616c01c477eea7eba4518a3874e8040 (diff) | |
download | pkgsrc-aaa9424d6f712dda61ef63abd5ded0adb785c073.tar.gz |
use local buffer in fnid instead of allocating lots of memory
Diffstat (limited to 'devel/id-utils')
-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++) + { |