]> git.ipfire.org Git - thirdparty/cups-filters.git/commit
cups-browsed: Fix broken trailing space removal on "NickName". 103/head
authorOliver Freyermuth <o.freyermuth@googlemail.com>
Tue, 2 Apr 2019 18:19:46 +0000 (20:19 +0200)
committerOliver Freyermuth <o.freyermuth@googlemail.com>
Tue, 2 Apr 2019 18:19:46 +0000 (20:19 +0200)
commit33c16917666bae31efffde7c82e896bc2a690a14
treef363af531136cb50ba3bada4fe22df4a935f049b
parent84657859490f302bb6d146517f656d5fe933363d
cups-browsed: Fix broken trailing space removal on "NickName".

The code tried to remove trailing spaces, but if there was
at least one trailing space, the last two characters of the
line were removed. This caused removal of the quotation mark
in case exactly one trailing space was present, breaking
the PPD and subsequently causing CUPS to mess up all queues
(even local ones).

Signed-off-by: Oliver Freyermuth <o.freyermuth@googlemail.com>
utils/cups-browsed.c