[alsa-devel] [PATCH: alsa-lib] Fix a string format ambiguity

Takashi Iwai tiwai at suse.de
Thu May 27 10:17:36 CEST 2010


At Sat, 17 Apr 2010 10:49:55 +0100,
Colin Guthrie wrote:
> 
> >From a57b4e4d1433d14e6fda9b675ade7e901222381b Mon Sep 17 00:00:00 2001
> From: Colin Guthrie <cguthrie at mandriva.org>
> Date: Sun, 28 Feb 2010 22:25:26 +0000
> Subject: [PATCH 501/501] Fix a string format ambiguity

Applied now.  Thanks.


Takashi

> 
> ---
>  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 f3580f9..7575f55 100644
> --- a/src/alisp/alisp.c
> +++ b/src/alisp/alisp.c
> @@ -1712,7 +1712,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.7.0
> 


More information about the Alsa-devel mailing list