summaryrefslogtreecommitdiff
path: root/devel/id-utils/patches/patch-aj
blob: 8047e36f6e3e9b8858fff6ea267b9e6fa25578d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-aj,v 1.1 2001/09/19 08:57:07 joda Exp $

--- src/fid.c~	Wed Aug  7 05:22:14 1996
+++ src/fid.c	Wed Sep 19 10:20:47 2001
@@ -26,7 +26,6 @@
 #include "error.h"
 #include "pathmax.h"
 #include "xmalloc.h"
-#include "xalloca.h"
 
 int get_file_index __P((char *file_name));
 int is_hit __P((unsigned char const *hits, int file_number));
@@ -203,7 +202,7 @@
   struct file_link **members;
   struct file_link **end = &members_0[idh.idh_files];
   struct file_link *fn_flink = 0;
-  char *file_name_buf = ALLOCA (char, PATH_MAX);
+  char file_name_buf[PATH_MAX];
   int has_slash = (strchr (file_name, '/') != 0);
   int file_name_length = strlen (file_name);
   int idx = -1;