diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2015-05-09 11:19:33 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2015-05-09 11:19:33 -0700 |
commit | af90a105ec97c6d856d2e8a80e8822c3e192d1e9 (patch) | |
tree | 88e8a1428621f6dd10eb7c37370723d2e6a1b7e8 /handler.c | |
parent | 9ffefd5b3d38e9ed2b5ed59bc50e8a7da761fb77 (diff) |
Replace remaining sprintf calls with snprintf
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'handler.c')
-rw-r--r-- | handler.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -564,8 +564,9 @@ _AppendResourceString(Widget w, XtPointer res_box_ptr, XtPointer filename_ptr) } if ((fp = fopen(global_resources.save_resources_file, "a+")) == NULL) { - sprintf(buf, "Unable to open this file for writing, would %s", - "you like To try again?"); + snprintf(buf, sizeof(buf), "%s", + "Unable to open this file for writing, would " + "you like To try again?"); _PopupFileDialog(global_toplevel ,buf, global_resources.save_resources_file, _AppendResourceString, res_box_ptr); |