From da7050e0e17ba1e0be2f00be387517d3885b2f10 Mon Sep 17 00:00:00 2001 From: xpyanfa <75970405+xpyanfa@users.noreply.github.com> Date: Wed, 9 Feb 2022 09:58:26 +0800 Subject: [PATCH] Update ppd-attr.c Add Xprinter device support. --- cups/ppd-attr.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cups/ppd-attr.c b/cups/ppd-attr.c index 982f901a6c..c8f90304f0 100644 --- a/cups/ppd-attr.c +++ b/cups/ppd-attr.c @@ -170,6 +170,14 @@ _ppdNormalizeMakeAndModel( if ((bufptr = strrchr(buffer, ')')) != NULL) *bufptr = '\0'; } + else if (!_cups_strncasecmp(make_and_model, "Xprinter", 8)) + { + /* + * Xprinter... + */ + + snprintf(buffer, bufsize, "%s", make_and_model); + } else if (!_cups_strncasecmp(make_and_model, "XPrint", 6)) { /*