Subject: pkg-info and max line length
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 11/03/2003 16:17:51
pkg_info's source at pkg_install/files/info/show.c does:

	maxline -= MAXNAMESIZE;
...
	if (termwidth && (linelen > maxline)) {
		/* XXX -1 if term does NOT have xn (or xenl) quirk */
		line[maxline] = '\0';
	}


And then some lines outputed by pkg_info may be too long because of long
package name, like:

xscreensaver-gnome-4.13 Screen saver and locker for the X window system
(with GNOME
gdk-pixbuf-gnome-0.22.0nb1 The GNOME image loading library GNOME canvas
support add-on


Should the maxline be based on the length of the package name if longer
than MAXNAMESIZE?


   Jeremy C. Reed
   http://www.reedmedia.net/