$OpenBSD: patch-unix_unix_c,v 1.1 2004/12/04 15:36:36 robert Exp $
--- unix/unix.c.orig	Sat Dec  4 16:25:31 2004
+++ unix/unix.c	Sat Dec  4 16:26:56 2004
@@ -319,9 +319,9 @@
    a file size of -1 */
 {
   struct stat s;        /* results of stat() */
-  char name[FNMAX];
-  int len = strlen(f);
-
+  char *name;
+  size_t len = strlen(f);
+  
   if (f == label) {
     if (a != NULL)
       *a = label_mode;
@@ -331,6 +331,11 @@
       t->atime = t->mtime = t->ctime = label_utim;
     return label_time;
   }
+  
+  name = malloc(len + 1);
+  if (!name)
+    return 0;
+    
   strcpy(name, f);
   if (name[len - 1] == '/')
     name[len - 1] = '\0';
