diff options
Diffstat (limited to 'src/util/ss/help.c')
-rw-r--r-- | src/util/ss/help.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/util/ss/help.c b/src/util/ss/help.c index 2752f40ed..019939795 100644 --- a/src/util/ss/help.c +++ b/src/util/ss/help.c @@ -38,8 +38,9 @@ void ss_help (argc, argv, sci_idx, info_ptr) } else if (argc != 2) { /* should do something better than this */ - sprintf(buffer, "usage:\n\t%s [topic|command]\nor\t%s\n", - request_name, request_name); + snprintf(buffer, sizeof(buffer), + "usage:\n\t%s [topic|command]\nor\t%s\n", + request_name, request_name); ss_perror(sci_idx, 0, buffer); return; } |