summaryrefslogtreecommitdiff
path: root/app/xsm/popup.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2010-10-31 20:17:59 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2010-10-31 20:17:59 +0000
commit1eaf7ae9d7ff2adf3249176c155ae66dea08ecc3 (patch)
treed020778c6956a535dd35a4626b7857b36b775c20 /app/xsm/popup.c
parent0aea447cde00cd16718571f752213425ba2b2d23 (diff)
Update to xsm 1.0.2
Diffstat (limited to 'app/xsm/popup.c')
-rw-r--r--app/xsm/popup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/xsm/popup.c b/app/xsm/popup.c
index e03ac8804..5c0ef971a 100644
--- a/app/xsm/popup.c
+++ b/app/xsm/popup.c
@@ -88,7 +88,7 @@ PopupPopup(Widget parent, Widget popup, Bool transient, Bool first_time,
}
else
{
- sprintf (geom, "+%d+%d", popup_x, popup_y);
+ snprintf (geom, sizeof(geom), "+%d+%d", popup_x, popup_y);
XtVaSetValues (popup,
XtNgeometry, geom,
@@ -160,7 +160,7 @@ PopupPopup(Widget parent, Widget popup, Bool transient, Bool first_time,
XtUnrealizeWidget (popup);
- sprintf (geom, "+%d+%d", popup_x, popup_y);
+ snprintf (geom, sizeof(geom), "+%d+%d", popup_x, popup_y);
XtVaSetValues (popup,
XtNgeometry, geom,