Line
Link Here
|
0 |
-- zip-2.3/unix/unix.c.orig 2004-11-05 15:44:41.000000000 -0500 |
0 |
++ zip-2.3/unix/unix.c 2004-11-05 15:50:28.000000000 -0500 |
Lines 319-326
iztimes *t; /* return value:
Link Here
|
319 |
a file size of -1 */ |
319 |
a file size of -1 */ |
320 |
{ |
320 |
{ |
321 |
struct stat s; /* results of stat() */ |
321 |
struct stat s; /* results of stat() */ |
322 |
char name[FNMAX]; |
322 |
char *name; |
323 |
int len = strlen(f); |
323 |
size_t len = strlen(f); |
324 |
|
324 |
|
325 |
if (f == label) { |
325 |
if (f == label) { |
326 |
if (a != NULL) |
326 |
if (a != NULL) |
Lines 331-336
iztimes *t; /* return value:
Link Here
|
331 |
t->atime = t->mtime = t->ctime = label_utim; |
331 |
t->atime = t->mtime = t->ctime = label_utim; |
332 |
return label_time; |
332 |
return label_time; |
333 |
} |
333 |
} |
|
|
334 |
|
335 |
name = malloc(len+1); |
336 |
if (!name) |
337 |
return 0; |
338 |
|
334 |
strcpy(name, f); |
339 |
strcpy(name, f); |
335 |
if (name[len - 1] == '/') |
340 |
if (name[len - 1] == '/') |
336 |
name[len - 1] = '\0'; |
341 |
name[len - 1] = '\0'; |