From: Michael R Sweet Date: Wed, 2 Apr 2025 19:13:05 +0000 (-0400) Subject: Drop non-keyword characters from PPD names (Issue #1118) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77435cc905ab12d307300d82f79c8ce8243cd651;p=thirdparty%2Fcups.git Drop non-keyword characters from PPD names (Issue #1118) --- diff --git a/cups/ppd-cache.c b/cups/ppd-cache.c index 155efa1bed..e9e1e0f7da 100644 --- a/cups/ppd-cache.c +++ b/cups/ppd-cache.c @@ -1,7 +1,7 @@ /* * PPD cache implementation for CUPS. * - * Copyright © 2022-2024 by OpenPrinting. + * Copyright © 2022-2025 by OpenPrinting. * Copyright © 2010-2021 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more @@ -5845,11 +5845,6 @@ pwg_unppdize_name(const char *ppd, /* I - PPD keyword */ nodash = 1; } } - else - { - *ptr++ = *ppd; - nodash = 0; - } if (nodash == 0) {