From ef329f1da9db741513dd01811b8706d34cc953d2 Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Wed, 29 May 2024 08:44:35 +0200 Subject: [PATCH] ppd-cache.c: Fix generating cupsUrfSupported (fixes #952) The PPD keyword got the option values concatenated together without commas, which broke filter processing in libcupsfilters Sometimes more commas better commas :) --- CHANGES.md | 1 + cups/ppd-cache.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index c8349081d4..c10fdd0c35 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,6 +4,7 @@ CHANGES - OpenPrinting CUPS 2.4.9 - (TBA) Changes in CUPS v2.4.9 (TBA) ---------------------------- +- Fixed creating of `cupsUrfSupported` PPD keyword (Issue #952) - Fixed searching for destinations in web ui (Issue #954) - Fixed TLS negotiation using OpenSSL with servers that require the TLS SNI extension. diff --git a/cups/ppd-cache.c b/cups/ppd-cache.c index 3650f40f02..e750fccd48 100644 --- a/cups/ppd-cache.c +++ b/cups/ppd-cache.c @@ -3511,7 +3511,7 @@ _ppdCreateFromIPP2( for (i = 0, count = ippGetCount(attr); i < count; i ++) { keyword = ippGetString(attr, i, NULL); - cupsFilePrintf(fp, "%s%s", keyword, i ? "" : ","); + cupsFilePrintf(fp, "%s%s", keyword, i != count - 1 ? "," : ""); } cupsFilePuts(fp, "\"\n"); } -- 2.47.2