X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=dump%2Foptr.c;h=6b86b9a8da2e0f9ce6cc8897b99140c8b31c9308;hp=56e1f345bfe64aadfe15f997d21f92d1579101ca;hb=5f918de77f94e993a3deeac97cc1029aa6ccd85c;hpb=9688d7da77c967f229c4257f03f0e13055f93323 diff --git a/dump/optr.c b/dump/optr.c index 56e1f34..6b86b9a 100644 --- a/dump/optr.c +++ b/dump/optr.c @@ -41,7 +41,7 @@ #ifndef lint static const char rcsid[] = - "$Id: optr.c,v 1.27 2001/09/12 09:02:51 stelian Exp $"; + "$Id: optr.c,v 1.28 2001/12/24 12:28:39 stelian Exp $"; #endif /* not lint */ #include @@ -539,7 +539,7 @@ fstabsearchdir(const char *key, char *directory) for (pf = table; pf != NULL; pf = pf->pf_next) { fs = pf->pf_fstab; if (strlen(fs->fs_file) > size && - strlen(key) > strlen(fs->fs_file) + 1 && + strlen(key) > strlen(fs->fs_file) && strncmp(fs->fs_file, key, strlen(fs->fs_file)) == 0 && (key[strlen(fs->fs_file)] == '/' || fs->fs_file[strlen(fs->fs_file) - 1] == '/')) {