mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-22 16:56:31 +01:00
Fixed heap overwriting problems...
This commit is contained in:
parent
bf4625ca5a
commit
a8cbebd368
1 changed files with 2 additions and 2 deletions
|
@ -114,7 +114,7 @@ static int info(void)
|
|||
}
|
||||
|
||||
static snd_control_id_t __control_id ATTRIBUTE_UNUSED;
|
||||
#define control_name_size sizeof(__control_id.name)
|
||||
#define control_name_size (sizeof(__control_id.name)+1)
|
||||
|
||||
static char *control_name(const char *name, char *result)
|
||||
{
|
||||
|
@ -174,7 +174,7 @@ static char *control_access(unsigned int access, char *result)
|
|||
}
|
||||
|
||||
static snd_mixer_sid_t __simple_id ATTRIBUTE_UNUSED;
|
||||
#define simple_name_size sizeof(__simple_id.name)
|
||||
#define simple_name_size (sizeof(__simple_id.name)+1)
|
||||
|
||||
static char *simple_name(const char *name, char *result)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue