summaryrefslogtreecommitdiff
path: root/app/fvwm/modules
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2021-01-24 09:21:22 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2021-01-24 09:21:22 +0000
commit15cbc0bb6b959590baa0c82e9aecdd6e9ebb602b (patch)
treed0eadeb3bdb99f03117a8df23c5a5635d32d5aea /app/fvwm/modules
parent50dcc0d98100cb2a845d3b3f60df9d71cb2ddb68 (diff)
Fix 'format string is not a string literal' warning.
Diffstat (limited to 'app/fvwm/modules')
-rw-r--r--app/fvwm/modules/FvwmIconMan/functions.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/fvwm/modules/FvwmIconMan/functions.c b/app/fvwm/modules/FvwmIconMan/functions.c
index 59430cf65..6cd12f674 100644
--- a/app/fvwm/modules/FvwmIconMan/functions.c
+++ b/app/fvwm/modules/FvwmIconMan/functions.c
@@ -3,7 +3,7 @@
#include "xmanager.h"
static char const rcsid[] =
- "$Id: functions.c,v 1.1 2006/11/26 10:53:49 matthieu Exp $";
+ "$Id: functions.c,v 1.2 2021/01/24 09:21:21 matthieu Exp $";
static Button *get_select_button (void);
@@ -414,7 +414,7 @@ int builtin_ret (int numargs, BuiltinArg *args)
int builtin_print (int numargs, BuiltinArg *args)
{
- char *s, buf[256];
+ char *s;
ConsoleDebug (FUNCTIONS, "print: %s\n", args[0].value.string_value);
@@ -423,8 +423,7 @@ int builtin_print (int numargs, BuiltinArg *args)
ConsoleMessage ("String too long\n");
}
else {
- sprintf (buf, "%s\n", s);
- ConsoleMessage (buf);
+ ConsoleMessage ("%s\n", s);
}
return 0;