diff options
Diffstat (limited to 'lib/libXt/src/Selection.c')
-rw-r--r-- | lib/libXt/src/Selection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libXt/src/Selection.c b/lib/libXt/src/Selection.c index 1759c0216..101ea6aaa 100644 --- a/lib/libXt/src/Selection.c +++ b/lib/libXt/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); |