RPM Community Forums

Mailing List Message of <popt-devel>

A little more stpcpy() tweaking + a "..." bonus

From: Wayne Davison <wayned@samba.org>
Date: Wed 26 Mar 2008 - 16:13:14 CET
Message-ID: <20080326151314.GB31075@herod.dreamhost.com>
I made a couple more places use stpcpy() in the code, optimizing away a
couple strlen() calls in the process.  I also tweaked the help code that
was abbreviating a long value using "..." to allow a string to fit if it
can, rather than always reserving space for the "..." chars.  I.e. if we
had room for 4 word chars, instead of outputting "w...", it would allow
a full "word" to be output, since it fits.

..wayne..


Received on Wed Mar 26 16:27:47 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.