From: Marco van Wieringen Date: Fri, 28 Oct 2011 21:06:53 +0000 (+0200) Subject: Fix bug #1771 BAT crashes. X-Git-Tag: Release-7.0.0~518 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=dd3995daf145e94208c464c4dce0a2c81ec078e3;p=bacula%2Fbacula 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. --- 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; } }