diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-12-20 18:26:38 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-12-20 18:26:38 -0800 |
commit | f2b4a35060e6ebe55846b62780ca01c6d519c84f (patch) | |
tree | 57ce91709ba1f5160f10601d0b1ccb46edc87f50 | |
parent | fad963fc4d1d8dc0a860ee3c7e3280a13124e296 (diff) |
Convert sprintf to snprintf
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | xload.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |