diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2010-12-09 23:44:42 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2010-12-22 10:41:34 -0800 |
commit | 84f73c49db8071c06f27609ce7cc7a32a17351a9 (patch) | |
tree | 3eebab3519b8e2c8da21a69318118ac57e8c50f6 /src/Selection.c | |
parent | 14145f3e87a039640cd8bdb2e2f4f30ca9b2a710 (diff) |
Convert some sprintf calls to snprintf
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Julien Cristau <jcristau@debian.org>
Diffstat (limited to 'src/Selection.c')
-rw-r--r-- | src/Selection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Selection.c b/src/Selection.c index 1759c02..101ea6a 100644 --- a/src/Selection.c +++ b/src/Selection.c @@ -226,7 +226,7 @@ static Atom GetSelectionProperty( propCount = sarray->propCount++; sarray->list = (SelectionProp) XtRealloc((XtPointer)sarray->list, (unsigned)(sarray->propCount*sizeof(SelectionPropRec))); - (void) sprintf(propname, "%s%d", "_XT_SELECTION_", propCount); + (void) snprintf(propname, sizeof(propname), "_XT_SELECTION_%d", propCount); sarray->list[propCount].prop = XInternAtom(dpy, propname, FALSE); sarray->list[propCount].avail = FALSE; return(sarray->list[propCount].prop); |