[PATCH 6/6] Convert some malloc + strncpy pairs into strndup calls

Alan Coopersmith alan.coopersmith at oracle.com
Fri Oct 28 21:39:26 PDT 2011


On 10/28/11 20:10, Alan Coopersmith wrote:
> On 10/28/11 18:13, Matt Turner wrote:
>> On Fri, Oct 28, 2011 at 8:34 PM, Alan Coopersmith
>> <alan.coopersmith at oracle.com> wrote:
>>> Signed-off-by: Alan Coopersmith<alan.coopersmith at oracle.com>
>>
>> I think these can be converted as well.
>>
>> Xext/xselinux_ext.c:SELinuxCopyContext
>> dix/dixfonts.c:SetFontPathElements
>> hw/dmx/dmxinit.c:dmxSetDefaultFontPath
>> hw/dmx/dmxprop.c:dmxPropertyCheckOtherServers
>> hw/dmx/input/dmxarg.c:dmxArgParse
>> hw/xfree86/loader/loadmod.c:LoaderListDirs
>> hw/xwin/InitOutput.c:winFixupPaths
>> hw/xwin/winmultiwindowclass.c:winMultiWindowGetClassHint
>> hw/xwin/winwindowswm.c:ProcWindowsWMFrameSetTitle
>> os/client.c:DetermineClientCmd
 >
> Please feel free to work on converting any of the above if you can
> determine it's safe to do so.

Some other potential candidates:

Xi/xichangehierarchy.c: add_master
hw/xfree86/fbdevhw/fbdevhw.c: fbdev_open_pci, fbdev_open
hw/xfree86/loader/loadmod.c: LoaderGetCanonicalName

-- 
	-Alan Coopersmith-        alan.coopersmith at oracle.com
	 Oracle Solaris Platform Engineering: X Window System



More information about the xorg-devel mailing list