[PATCH:xman 4/4] Use snprintf to PATH_MAX sized buffers to construct filenames
halsmit at t-online.de
Sat Jan 29 02:00:25 PST 2011
On Fri, Jan 28, 2011 at 11:14:00PM -0800, Alan Coopersmith wrote:
> Simpler than trying to calculate the size to malloc.
> Could have used XtAsprintf() but didn't seem worth the dependency
> for two simple calls with a standard, well-known maximum size.
> Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
> main.c | 6 +++---
> misc.c | 11 +++--------
> 2 files changed, 6 insertions(+), 11 deletions(-)
Reviewed-by: Dirk Wallenstein <halsmit at t-online.de>
More information about the xorg-devel