summaryrefslogtreecommitdiff
path: root/xload.c
diff options
context:
space:
mode:
Diffstat (limited to 'xload.c')
-rw-r--r--xload.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xload.c b/xload.c
index 4a333c3..b0823c2 100644
--- a/xload.c
+++ b/xload.c
@@ -228,7 +228,7 @@ main(int argc, char **argv)
XrmValue int_value;
Bool found = False;
- (void) sprintf (name, "%s.paned.load.update", XtName(toplevel));
+ snprintf (name, sizeof(name), "%s.paned.load.update", XtName(toplevel));
found = XrmGetResource (XtScreenDatabase(XtScreen(toplevel)),
name, "XLoad.Paned.StripChart.Interval",
&type, &db_value);