less: document -S flag and make it independently configurable
[oweals/busybox.git] / archival / libarchive / unsafe_prefix.c
index 826c673bfdf9be2c14f765970e5927558feb590e..9994f4d94edf01f2815507a8b2ba1d7315d2171f 100644 (file)
@@ -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;
                }