diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2011-09-10 09:36:20 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2011-09-10 09:36:20 +0000 |
commit | 90835ae27aafb45d88761e9725f76d8f05d7fac3 (patch) | |
tree | cfd87fc8689063ebc6adcc4e23504795fb7a5ca0 /lib/libXt/src/Selection.c | |
parent | 68b5a21e22ea0d5d2f329d8e756448a3544a49d2 (diff) |
Update to libXt 1.1.1
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); |