summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-10-19 21:57:49 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-10-19 21:57:49 -0700
commit72355a2b5583b5e915966b81e27a35e86ce62fca (patch)
treebf39541da40f303d696070b22248a811b5ab3537
parentb969683854b09fd661d72e68617d3ac3de1a1013 (diff)
Replace sprintf call with snprintf
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-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);