From dd3995daf145e94208c464c4dce0a2c81ec078e3 Mon Sep 17 00:00:00 2001 From: Marco van Wieringen Date: Fri, 28 Oct 2011 23:06:53 +0200 Subject: [PATCH] Fix bug #1771 BAT crashes. As it seems B_ISSPACE is much wider then I thought it would be as I only wanted to remove both spaces and tabs but that seems to break the BAT protocol. So lets backout that patch. --- bacula/src/lib/scan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bacula/src/lib/scan.c b/bacula/src/lib/scan.c index 4e9aadc152..d8dfab3835 100644 --- a/bacula/src/lib/scan.c +++ b/bacula/src/lib/scan.c @@ -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; } } -- 2.39.5