diff options
-rw-r--r-- | src/cmd/vac/unvac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/vac/unvac.c b/src/cmd/vac/unvac.c index d9c21c46..d4f863cc 100644 --- a/src/cmd/vac/unvac.c +++ b/src/cmd/vac/unvac.c @@ -129,7 +129,7 @@ wantfile(char *name) n = strlen(want[i]); if(n < namelen && name[n] == '/' && memcmp(name, want[i], n) == 0) return 1; - if(namelen < n && want[i][namelen] == '/' && memcmp(want[i], name, n) == 0) + if(namelen < n && want[i][namelen] == '/' && memcmp(want[i], name, namelen) == 0) return 1; if(n == namelen && memcmp(name, want[i], n) == 0){ found[i] = 1; |