diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-05-17 21:56:36 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-05-17 21:56:36 -0700 |
commit | f393be55ace1de85445cb1f24fdf235d6644874a (patch) | |
tree | b09a740fb7e77c5ba3299570fad8140385bda522 | |
parent | a9f3465dc1d5fcd0c79d5b12bc09fe48e62d7823 (diff) |
Convert last sprintf to snprintf
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | xclipboard.c | 2 |
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); } |