All of lore.kernel.org
 help / color / mirror / Atom feed
* PATCH: acore/wrappers.c hosed snprintf
@ 2003-07-13 12:28 Matthias Andree
  2003-07-15 23:33 ` alsa 0.9.5 - ymfpci - Yay! tom burkart
  2003-09-01 15:40 ` PATCH: acore/wrappers.c hosed snprintf Matthias Andree
  0 siblings, 2 replies; 11+ messages in thread
From: Matthias Andree @ 2003-07-13 12:28 UTC (permalink / raw)
  To: alsa-devel

Hi,

for some reason, alsa-driver-0.9.5 chose to use its snd_compat_*snprintf
stuff on Linux 2.4.22-pre3-ac1. This triggered bugs in wrappers.c that
break the compile, trivial patch below. Please apply.

--- ./acore/wrappers.c.orig	2003-07-13 13:53:29.000000000 +0200
+++ ./acore/wrappers.c	2003-07-13 13:53:43.000000000 +0200
@@ -58,7 +58,6 @@
 int snd_compat_vsnprintf(char *buf, size_t size, const char *fmt, va_list args)
 {
 	char *ptr = (void *) __get_free_pages(GFP_KERNEL, 0);
-	va_list args;
 	if (ptr == NULL) {	/* should not happen - GFP_KERNEL has wait flag */
 		if (size > 0)
 			buf[0] = 0;
@@ -73,9 +72,10 @@
 int snd_compat_snprintf(char *buf, size_t size, const char * fmt, ...)
 {
 	int res;
+	va_list args;
 
 	va_start(args, fmt);
-	res = snd_compat_vsnprintf(buf, size, args);
+	res = snd_compat_vsnprintf(buf, size, fmt, args);
 	va_end(args);
 	return res;
 }


-- 
Matthias Andree


-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1

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

end of thread, other threads:[~2003-09-01 17:38 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-13 12:28 PATCH: acore/wrappers.c hosed snprintf Matthias Andree
2003-07-15 23:33 ` alsa 0.9.5 - ymfpci - Yay! tom burkart
2003-07-17  1:11   ` tom burkart
2003-07-17  8:50     ` Takashi Iwai
2003-07-17 11:09       ` tom burkart
2003-07-17 14:49         ` Takashi Iwai
2003-07-18  4:08           ` tom burkart
2003-07-17 11:17       ` tom burkart
2003-09-01 15:40 ` PATCH: acore/wrappers.c hosed snprintf Matthias Andree
2003-09-01 16:32   ` Takashi Iwai
2003-09-01 17:38     ` Matthias Andree

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.