Browse files

Fix compile error in alsa-lib's alisp because an

unchecked string is used as format string.

Backport from upstream alsa-lib to make the build succeed.

Change-Id: I019c93735911862671b2f8d9bd2f18444ee1de78
  • Loading branch information...
1 parent a185f14 commit f604a6465a247d030748f2ab0b1a405c66c668e4 @pgeorgi pgeorgi committed with Dec 19, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/alisp/alisp.c
@@ -1713,7 +1713,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);
princ_object(instance->out, p1);
n = cdr(p);

0 comments on commit f604a64

Please sign in to comment.