pkgsrc/devel/idutils/patches/patch-ai
wiz 8a43e059b6 Update to 4.2:
Version 4.2 - August 5, 2006, by Claudio Fontana

* Bugfix release
2006-08-06 23:10:30 +00:00

21 lines
656 B
Text

$NetBSD: patch-ai,v 1.2 2006/08/06 23:10:30 wiz Exp $
--- src/fid.c.orig 2006-03-05 05:24:21.000000000 -0500
+++ src/fid.c 2006-08-03 12:49:29.089070087 -0400
@@ -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 @@
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);
int file_name_length = strlen (file_name);
int idx = -1;