2016-01-21 23:40:00 +01:00

24 lines
601 B
Plaintext

$NetBSD: patch-aa,v 1.2 2014/12/15 11:35:42 mef Exp $
To avoid using alloca.h
--- libidu/fnprint.c.orig 2005-12-27 00:21:33.000000000 -0500
+++ libidu/fnprint.c 2006-08-03 12:58:44.026747335 -0400
@@ -19,7 +19,6 @@
#include <config.h>
#include <stdio.h>
#include <stdlib.h>
-#include <alloca.h>
#include <unistd.h>
#include <string.h>
#include <pathmax.h>
@@ -82,7 +81,7 @@
struct file_link const *arg;
struct file_link const *dlink;
int brace_is_open = 0;
- char *file_name = alloca (sizeof(char) * PATH_MAX);
+ char file_name[sizeof(char) * PATH_MAX];
while (*flinkv)
{