Re: checknr WARNS6 cleanup

看板DFBSD_submit作者時間21年前 (2005/02/02 21:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/3 (看更多)
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
文章代碼(AID): #120CyX00 (DFBSD_submit)
文章代碼(AID): #120CyX00 (DFBSD_submit)