summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-05-17 21:56:36 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-05-17 21:56:36 -0700
commitf393be55ace1de85445cb1f24fdf235d6644874a (patch)
treeb09a740fb7e77c5ba3299570fad8140385bda522
parenta9f3465dc1d5fcd0c79d5b12bc09fe48e62d7823 (diff)
Convert last sprintf to snprintf
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--xclipboard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xclipboard.c b/xclipboard.c
index 62259c7..512aa5b 100644
--- a/xclipboard.c
+++ b/xclipboard.c
@@ -193,7 +193,7 @@ set_button_state (void)
XtSetValues (prevButton, &arg, ONE);
XtSetArg (arg, XtNsensitive, nextvalid);
XtSetValues (nextButton, &arg, ONE);
- sprintf (labelString, "%d", IndexCurrentClip ());
+ snprintf (labelString, sizeof(labelString), "%d", IndexCurrentClip ());
XtSetArg (arg, XtNlabel, labelString);
XtSetValues (indexLabel, &arg, ONE);
}