michaelrsweet / pappl

PAPPL - Printer Application Framework
https://www.msweet.org/pappl
Apache License 2.0
309 stars 49 forks source link

Possible typo in PAPPL code #103

Closed tillkamppeter closed 3 years ago

tillkamppeter commented 3 years ago

Describe the bug In the file pappl/system-loadsave.c, in the function papplSystemLoadState(), in the part where default settings for printers are loaded, you have the lines:

          snprintf(defname, sizeof(defname), "%s-default", line);
          snprintf(supname, sizeof(supname), "%s-default", line);

Should it not be

          snprintf(defname, sizeof(defname), "%s-default", line);
          snprintf(supname, sizeof(supname), "%s-supported", line);
michaelrsweet commented 3 years ago

Yes.

[v1.0.x e29c9ec] Fix loading of vendor defaults (Issue #103) [master 0d4eb45] Fix loading of vendor defaults (Issue #103)