From 77435cc905ab12d307300d82f79c8ce8243cd651 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Wed, 2 Apr 2025 15:13:05 -0400 Subject: [PATCH] Drop non-keyword characters from PPD names (Issue #1118) --- cups/ppd-cache.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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) { -- 2.47.3