aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2007-10-24 16:46:45 +0200
committerTakashi Iwai <tiwai@suse.de>2007-10-24 16:46:45 +0200
commit8e71eb43c6c43a3776fde033ae143e91480b93df (patch)
tree5e70e98a3c9a08cd6c898f3d33db23d10da3eadb
parent7c7caaca4fbc6615e6390f1ba8c31ae0bc55fb83 (diff)
downloadsalsa-lib-8e71eb43c6c43a3776fde033ae143e91480b93df.tar.gz
Fix silly bug in snd_*_alloca()
Fixed memset size in __snd_alloca() macro
-rw-r--r--src/global.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/global.h b/src/global.h
index 74a861d..30183b8 100644
--- a/src/global.h
+++ b/src/global.h
@@ -147,7 +147,7 @@ __snd_copy(type)
#define __snd_alloca(ptr, type) \
do { \
*ptr = (type##_t*)alloca(type##_sizeof()); \
- memset(*ptr, 0, snd_ctl_elem_id_sizeof()); \
+ memset(*ptr, 0, type##_sizeof()); \
} while (0)
#endif /* __ALSA_GLOBAL_H */