if (*p == '@') {
p++;
if (*p != '-' && IfMagickFalse(IsPathAccessible(p)) ) {
- (void) ThrowMagickException(exception,GetMagickModule(),
- OptionError,"UnableToAccessPath","%s",p);
+ (void) ThrowMagickException(exception,GetMagickModule(),OptionError,
+ "UnableToAccessPath","%s",p);
return((char *) NULL);
}
return(FileToString(p,~0UL,exception));
/*
Doubled Percent - or percent at end of string
*/
- if ( *p == '\0' )
- p--;
- if ( *p == '%' ) {
+ if ((*p == '\0') || (*p == '\'') || (*p == '"'))
+ p--;
+ if (*p == '%') {
*q++='%';
continue;
}
-
/*
Single letter escapes %c
*/