Update of /cvsroot/alsa/alsa-driver/acore
In directory sc8-pr-cvs1:/tmp/cvs-serv10553
Modified Files:
wrappers.c
Log Message:
Matthias Andree <[EMAIL PROTECTED]>
acore/wrappers.c hosed snprintf
Index: wrappers.c
===================================================================
RCS file: /cvsroot/alsa/alsa-driver/acore/wrappers.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- wrappers.c 3 Jul 2003 11:36:16 -0000 1.19
+++ wrappers.c 14 Jul 2003 07:57:30 -0000 1.20
@@ -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;
}
-------------------------------------------------------
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
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog