[PATCH:libX11 04/12] ximcp/imRm.c: convert sprintf calls to snprintf
Alan Coopersmith
alan.coopersmith at oracle.com
Sun Aug 11 01:00:46 PDT 2013
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.)
--
-Alan Coopersmith- alan.coopersmith at oracle.com
Oracle Solaris Engineering - http://blogs.oracle.com/alanc
More information about the xorg-devel
mailing list