[PATCH:libX11 04/12] ximcp/imRm.c: convert sprintf calls to snprintf

walter harms wharms at bfs.de
Sun Aug 11 12:10:45 PDT 2013



Am 11.08.2013 10:00, schrieb Alan Coopersmith:
> On 08/11/13 12:49 AM, walter harms wrote:
>> Does that thing store only a string ? it looks that it is more easy
>> to asprintf() here.
> 
> It stores a variety of strings of different lengths and contents. It
> mallocs
> once, then snprintfs a number of times to the same temporary buffers.
> 
> (I considered asprintf() but rejected it since it wouldn't work well
> there.)
> 
ok thats a different game

re,
 wh


More information about the xorg-devel mailing list