diff options
author | Russ Cox <rsc@swtch.com> | 2008-12-06 14:42:14 -0800 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2008-12-06 14:42:14 -0800 |
commit | b5a2d4dae76817f8e206d32302206a8a7ababc46 (patch) | |
tree | 1ccf1654135d7f219ba84404e7f4d088579a7c9c /src/cmd/vac | |
parent | c8d681e850ff0acecedb86d4a8a927687536e013 (diff) | |
download | plan9port-b5a2d4dae76817f8e206d32302206a8a7ababc46.tar.gz plan9port-b5a2d4dae76817f8e206d32302206a8a7ababc46.tar.bz2 plan9port-b5a2d4dae76817f8e206d32302206a8a7ababc46.zip |
unvac: correct handling of named prefixes (Mathieu Lonjaret)
Diffstat (limited to 'src/cmd/vac')
-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; |