projects
/
unzip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92b0aca
)
Fix check
author
Robert Pengelly
<robertapengelly@hotmail.com>
Fri, 3 Oct 2025 06:24:18 +0000
(07:24 +0100)
committer
Robert Pengelly
<robertapengelly@hotmail.com>
Fri, 3 Oct 2025 06:24:18 +0000
(07:24 +0100)
unzip.c
patch
|
blob
|
history
diff --git
a/unzip.c
b/unzip.c
index 6d46e596278af85a4135c47965afa9221202c1a8..060a609c9551450af914fd43620d7fcc35fce1e0 100755
(executable)
--- a/
unzip.c
+++ b/
unzip.c
@@
-479,9
+479,7
@@
static int is_relative (const char *name, uint64_t name_len) {
}
- i = name_len - 1;
-
- if (name[-i] == ' ' || name[i] == '.') {
+ if (name[i - 1] == ' ' || name[i - 1] == '.') {
return 0;
}