head	1.2;
access;
symbols
	RELEASE_6_0_0:1.1
	RELEASE_5_4_0:1.1
	RELEASE_4_11_0:1.1;
locks; strict;
comment	@# @;


1.2
date	2005.11.13.12.38.50;	author ache;	state dead;
branches;
next	1.1;

1.1
date	2004.12.01.20.14.18;	author ache;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Upgrade to 2.31

PR:     88896
@
text
@--- zip-2.3/unix/unix.c.orig    2004-11-05 15:44:41.000000000 -0500
+++ unix/unix.c 2004-11-05 15:50:28.000000000 -0500
@@@@ -319,8 +319,8 @@@@ iztimes *t;             /* return value:
    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)
@@@@ -331,6 +331,11 @@@@ iztimes *t;             /* return value:
       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';
@


1.1
log
@Close overflow

Submitted by:   simon
@
text
@@

