projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
less: document -S flag and make it independently configurable
[oweals/busybox.git]
/
archival
/
libarchive
/
unsafe_prefix.c
diff --git
a/archival/libarchive/unsafe_prefix.c
b/archival/libarchive/unsafe_prefix.c
index 826c673bfdf9be2c14f765970e5927558feb590e..9994f4d94edf01f2815507a8b2ba1d7315d2171f 100644
(file)
--- a/
archival/libarchive/unsafe_prefix.c
+++ b/
archival/libarchive/unsafe_prefix.c
@@
-15,7
+15,7
@@
const char* FAST_FUNC strip_unsafe_prefix(const char *str)
cp++;
continue;
}
- if (
strncmp(cp, "/../"+1, 3) == 0
) {
+ if (
is_prefixed_with(cp, "/../"+1)
) {
cp += 3;
continue;
}