summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xlibclient.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xlibclient.c b/src/xlibclient.c
index 1aa3590..92411d4 100644
--- a/src/xlibclient.c
+++ b/src/xlibclient.c
@@ -203,7 +203,7 @@ NestedClientCreateScreen(int scrnIndex,
sizeHints.max_height = height;
XSetWMNormalHints(pPriv->display, pPriv->window, &sizeHints);
- sprintf(windowTitle, "Screen %d", scrnIndex);
+ snprintf(windowTitle, sizeof(windowTitle), "Screen %d", scrnIndex);
XStoreName(pPriv->display, pPriv->window, windowTitle);