! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xfprint does not handle printcap lines longer than 80 characters in bsdlpr mo...
Status:
CLOSED: FIXED
Product:
Xfprint4
Component:
General

Comments

Description Jason Keltz 2005-03-01 14:54:49 CET
In printing-systems/bsd-lpr/bsdlpr.c, function get_printers_list, the system
uses a gchar buf[80] to hold onto each line of input from /etc/printcap.  If a
line exceeds 80 characters, it will consider the continuation of the line to be
a new printer yielding a strange printer list.

Reproducible: Always
Steps to Reproduce:
1. 
2. 
3.
Comment 1 Jean-François Wauthy editbugs 2005-03-01 16:06:26 CET
i increased the buffer size to 1024 characters, should be alright; if i have
time i'll try to make it dynamicly allocated

Bug #816

Reported by:
Jason Keltz
Reported on: 2005-03-01
Last modified on: 2009-07-14

People

Assignee:
Jean-François Wauthy
CC List:
0 users

Version

Attachments

Additional information