Commit 838391e4 authored by Michael Weghorn's avatar Michael Weghorn Committed by Marek Kašík

Improve printer distinction for option retrieval

In order to retrieve the user options for a printer, the respective
printer name is used.
This fixes the comparison of printer names to avoid that the options of
another printer are accidently read whose name starts with the same
letters, but is longer (e.g. "myprinterlongername" instead of

This fixes Bug 753628.
parent 3ffef0ca
......@@ -3981,7 +3981,7 @@ cups_parse_user_options (const char *filename,
*lineptr++ = '\0';
if (strncasecmp (name, printer_name, strlen (printer_name)) != 0)
if (strcasecmp (name, printer_name) != 0)
/* We found our printer, parse the options */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment