]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/tools/dbcheck.c
Replace explicit checks for "/" with calls to IsPathSeparator, strchr with first_path...
[bacula/bacula] / bacula / src / tools / dbcheck.c
index d473899c3681b5560a3aa045f8e4e7526993feb2..b9e83fd7ad49e519d06e7555eabc1e751469f271 100644 (file)
@@ -1035,7 +1035,7 @@ static void repair_bad_filenames()
             printf("%s\n", db_strerror(db));
          }
          /* Strip trailing slash(es) */
-         for (len=strlen(name); len > 0 && name[len-1]=='/'; len--)
+         for (len=strlen(name); len > 0 && IsPathSeparator(name[len-1]); len--)
             {  }
          if (len == 0) {
             len = 1;