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

2013-10-27 Thread Alan Coopersmith
On 10/27/13 05:16 AM, walter harms wrote: If Xkb has asprint() it is possible to avoid all this strlen() stuff and use asprint(). Unfortunately it does not, and while I considered adding it, there weren't enough places where the strlen() is being used to allocate memory instead of putting into

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

2013-10-27 Thread walter harms
Am 26.10.2013 23:10, schrieb Alan Coopersmith: > Signed-off-by: Alan Coopersmith > --- > src/cout.c |4 +- > src/maprules.c |8 +- > src/xkbtext.c | 230 > ++-- > 3 files changed, 128 insertions(+), 114 deletions(-) > > diff --

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

2013-10-26 Thread Alan Coopersmith
Signed-off-by: Alan Coopersmith --- src/cout.c |4 +- src/maprules.c |8 +- src/xkbtext.c | 230 ++-- 3 files changed, 128 insertions(+), 114 deletions(-) diff --git a/src/cout.c b/src/cout.c index 7e2c3cf..aa1b22d 100644 --- a/sr