Skip to content

Commit e3f61e2

Browse files
committed
fixed some incorrect names in zip files
1 parent a5f6524 commit e3f61e2

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ Version 7.6.0
22
- Added new Spin2_v52 keywords
33
- Fixed spin2 \ interaction with ABORT
44
- Fixed initialization of packed structures
5+
- Fixed some incorrect file names in zip files
56

67
Version 7.5.1
78
- Added ioctl function to libc.a

backends/zip/outzip.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ ShortZipName(SourceFile *sf, const char *root, size_t rootlen)
1414
if (!strncmp(sf->fullName, root, rootlen)) {
1515
return sf->fullName + rootlen;
1616
}
17+
if (!strcmp(sf->fullName, sf->shortName)) {
18+
return sf->fullName;
19+
}
1720
return strdupcat("library/", sf->shortName);
1821
}
1922

0 commit comments

Comments
 (0)