mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-22 02:57:40 -04:00
22 lines
692 B
Plaintext
22 lines
692 B
Plaintext
$NetBSD: patch-ai,v 1.3 2014/12/15 11:35:42 mef Exp $
|
|
|
|
--- src/fid.c.orig 2012-01-01 18:16:06.000000000 +0900
|
|
+++ src/fid.c 2014-11-20 23:08:54.000000000 +0900
|
|
@@ -23,7 +23,6 @@
|
|
#include <unistd.h>
|
|
#include <stdlib.h>
|
|
#include <errno.h>
|
|
-#include <alloca.h>
|
|
#include <error.h>
|
|
#include <pathmax.h>
|
|
#include <xalloc.h>
|
|
@@ -211,7 +210,7 @@ get_file_index (char *file_name)
|
|
struct file_link **members;
|
|
struct file_link **end = &members_0[idh.idh_files];
|
|
struct file_link *fn_flink = 0;
|
|
- char *file_name_buf = alloca (PATH_MAX);
|
|
+ char file_name_buf[PATH_MAX];
|
|
int has_slash = (strchr (file_name, '/') != 0);
|
|
size_t file_name_length = strlen (file_name);
|
|
int idx = -1;
|