On Sat, 29 Sep 2012, Marc Balmer wrote:

> Am 29.09.12 03:29, schrieb Jon Trulson:
>> On Fri, 28 Sep 2012, Marc Balmer wrote:
>>
>>> for patch 1:  don't roll your own strfunctions, use strlcpy or so
>>
>> I'm inclined to apply this - strlcpy isn't available on all systems
>> (on linux, requires bsd lib I think).  In addition, strlcpy also does
>> not permit overlapping buffers, based on a google search.  Was
>> valgrind detecting overlapping buffers?  Did it fix a problem?
>
> Well, linking with libbsd is no problem, it is available on all Linux
> distributions.  An alternativ could be to include your own copy of the
> strlcpy function from e.g. OpenBSD, which is really small.  I would opt
> for a solutions that used zillions of time over a hand-made kludge.

So: link with libbsd on Linux, use the native one on the BSDs, and fall 
back to built-in implementation for everything else?

-R

------------------------------------------------------------------------------
How fast is your code?
3 out of 4 devs don\\\'t know how their code performs in production.
Find out how slow your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219672;13503038;z?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel

Reply via email to