summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-12-20 18:26:38 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-12-20 18:26:38 -0800
commitf2b4a35060e6ebe55846b62780ca01c6d519c84f (patch)
tree57ce91709ba1f5160f10601d0b1ccb46edc87f50
parentfad963fc4d1d8dc0a860ee3c7e3280a13124e296 (diff)
Convert sprintf to snprintf
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-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);