DragonFly BSD
DragonFly submit List (threaded) for 2005-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: checknr WARNS6 cleanup


From: Joerg Sonnenberger <joerg@xxxxxxxxxxxxxxxxx>
Date: Wed, 2 Feb 2005 13:55:25 +0100
Mail-followup-to: submit@crater.dragonflybsd.org

On Tue, Feb 01, 2005 at 10:08:46PM -0800, Chris Pressey wrote:
> Attached is a refined version of this patch.  I'm not really happy about
> the malloc()s, but the other alternative is to copy all of br[] and
> knowncmds[] into writeable buffers, which isn't very appetizing either.

I haven't checked the original source, but is there a good reason not
to just strdup the strings? And check the return value for NULL of course :)

Joerg



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]