]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/scan.c
Make PurgeMigrationJob directive name correspond to doc
[bacula/bacula] / bacula / src / lib / scan.c
index 53bc960223dedce2ea6a34e083b4d37d929befd4..d8dfab383562fc8ad7b989abe46776f4a42d6524 100644 (file)
@@ -62,7 +62,7 @@ void strip_trailing_junk(char *cmd)
     * Strip trailing junk from command
     */
    p = cmd + strlen(cmd) - 1;
-   while ((p >= cmd) && (*p == '\n' || *p == '\r' || B_ISSPACE(*p))) {
+   while ((p >= cmd) && (*p == '\n' || *p == '\r' || *p == ' ')) {
       *p-- = 0;
    }
 }
@@ -91,8 +91,9 @@ void strip_trailing_slashes(char *dir)
     * Strip trailing slashes
     */
    p = dir + strlen(dir) - 1;
-   while (p >= dir && IsPathSeparator(*p))
+   while (p >= dir && IsPathSeparator(*p)) {
       *p-- = 0;
+   }
 }
 
 /*