Move "authenticate" string from image_info to Options splay-tree
diff --git a/coders/xps.c b/coders/xps.c
index 274b278..0d6d480 100644
--- a/coders/xps.c
+++ b/coders/xps.c
@@ -110,6 +110,9 @@
options[MaxTextExtent],
input_filename[MaxTextExtent];
+ const char
+ option;
+
const DelegateInfo
*delegate_info;
@@ -300,9 +303,10 @@
if (read_info->scenes != (char *) NULL)
*read_info->scenes='\0';
}
- if (read_info->authenticate != (char *) NULL)
+ option=GetImageOption(read_info,"authenticate");
+ if (option != (const char *) NULL)
(void) FormatLocaleString(options+strlen(options),MaxTextExtent,
- " -sXPSPassword=%s",read_info->authenticate);
+ " -sPCLPassword=%s",option);
(void) CopyMagickString(filename,read_info->filename,MaxTextExtent);
(void) AcquireUniqueFilename(read_info->filename);
(void) FormatLocaleString(command,MaxTextExtent,