Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH: alsa-lib] Fix a string format ambiguity
@ 2010-04-17  9:49 Colin Guthrie
  2010-05-27  8:17 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Colin Guthrie @ 2010-04-17  9:49 UTC (permalink / raw)
  To: alsa-devel

[-- Attachment #1: Type: text/plain, Size: 395 bytes --]

Hi,

Simply patch to fix a format-string ambiguity.

Meant to give this over before 1.0.23 but forgot.

Col

-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
  Mandriva Linux Contributor [http://www.mandriva.com/]
  PulseAudio Hacker [http://www.pulseaudio.org/]
  Trac Hacker [http://trac.edgewall.org/]

[-- Attachment #2: 0501-Fix-a-string-format-ambiguity.patch --]
[-- Type: text/x-patch, Size: 817 bytes --]

>From a57b4e4d1433d14e6fda9b675ade7e901222381b Mon Sep 17 00:00:00 2001
From: Colin Guthrie <cguthrie@mandriva.org>
Date: Sun, 28 Feb 2010 22:25:26 +0000
Subject: [PATCH 501/501] Fix a string format ambiguity

---
 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


[-- Attachment #3: Type: text/plain, Size: 160 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH: alsa-lib] Fix a string format ambiguity
  2010-04-17  9:49 [PATCH: alsa-lib] Fix a string format ambiguity Colin Guthrie
@ 2010-05-27  8:17 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2010-05-27  8:17 UTC (permalink / raw)
  To: Colin Guthrie; +Cc: alsa-devel

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@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
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-05-27  8:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-17  9:49 [PATCH: alsa-lib] Fix a string format ambiguity Colin Guthrie
2010-05-27  8:17 ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox