[PATCH:xkbcomp 3/4] Convert remaining sprintf calls to snprintf

2013-10-29 Thread Alan Coopersmith
Most were fixed length or length checked anyway, this just saves time doublechecking that. (A few could be replaced by asprintf, but we don't have a copy guaranteed to be reachable from this program yet.) Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- expr.c |2 +-

Re: [PATCH:xkbcomp 3/4] Convert remaining sprintf calls to snprintf

2013-10-29 Thread Jasper St. Pierre
You do know you can implement an asprintf-alike using vsnprintf, right? On Tue, Oct 29, 2013 at 9:51 PM, Alan Coopersmith alan.coopersm...@oracle.com wrote: Most were fixed length or length checked anyway, this just saves time doublechecking that. (A few could be replaced by asprintf, but

Re: [PATCH:xkbcomp 3/4] Convert remaining sprintf calls to snprintf

2013-10-29 Thread Alan Coopersmith
On 10/29/13 07:22 PM, Jasper St. Pierre wrote: You do know you can implement an asprintf-alike using vsnprintf, right? Yeah, I think it's safe to say I know that: http://cgit.freedesktop.org/xorg/app/xrdb/commit/?id=82babf3ecfd6eb1ef65a150fb0c453e7bfd61616

Re: [PATCH:xkbcomp 3/4] Convert remaining sprintf calls to snprintf

2013-10-29 Thread Jasper St. Pierre
Sure, then: Reviewed-by: Jasper St. Pierre jstpie...@mecheye.net On Wed, Oct 30, 2013 at 12:21 AM, Alan Coopersmith alan.coopersm...@oracle.com wrote: On 10/29/13 07:22 PM, Jasper St. Pierre wrote: You do know you can implement an asprintf-alike using vsnprintf, right? Yeah, I think