[alsa-devel] [PATCH alsa-lib] Fix build error with -Werror=format-security

Herton Ronaldo Krzesinski herton at mandriva.com.br
Mon Feb 9 20:18:49 CET 2009


src/alisp/alisp.c (F_princ): add missing format argument in call to
snd_output_printf

Signed-off-by: Herton Ronaldo Krzesinski <herton at mandriva.com.br>
---
 src/alisp/alisp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/alisp/alisp.c b/src/alisp/alisp.c
index 4ad1d09..de3defb 100644
--- a/src/alisp/alisp.c
+++ b/src/alisp/alisp.c
@@ -1708,7 +1708,7 @@ static struct alisp_object * F_princ(struct alisp_instance *instance, struct ali
 			delete_tree(instance, p1);
 		p1 = eval(instance, car(p));
 		if (alisp_compare_type(p1, ALISP_OBJ_STRING))
-			snd_output_printf(instance->out, p1->value.s);
+			snd_output_printf(instance->out, "%s", p1->value.s);
 		else
 			princ_object(instance->out, p1);
 		n = cdr(p);
-- 
1.6.1.3


More information about the Alsa-devel mailing list