diff options
Diffstat (limited to 'viewfuncs.c')
-rw-r--r-- | viewfuncs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/viewfuncs.c b/viewfuncs.c index ac2a924..f9a4dea 100644 --- a/viewfuncs.c +++ b/viewfuncs.c @@ -247,7 +247,7 @@ void DoPrintView( char str[200]; if (! scrn->msg) return; - (void) sprintf(str, "%s %s", app_resources.print_command, + snprintf(str, sizeof(str), "%s %s", app_resources.print_command, MsgFileName(scrn->msg)); argv = MakeArgv(3); argv[0] = "/bin/sh"; |