diff options
| author | Iban Cereijo <[email protected]> | 2024-05-08 19:43:27 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-05-08 19:43:27 +0200 |
| commit | 35e2189e626d4069aca6011fee361e945f68c1d7 (patch) | |
| tree | f107a1a831943cb5daa05aa25ddb3f94527a320a | |
| parent | 1f1b5cc6ce08b06107a028f1383b241681535289 (diff) | |
| parent | f52e8ca6e3ce1f196980e26359c568ee8bc36712 (diff) | |
| download | lingot-master.tar.gz | |
fix the size allocated for struct device_name_node_t
| -rw-r--r-- | src/lingot-audio-alsa.c | 2 | ||||
| -rw-r--r-- | src/lingot-audio-pulseaudio.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lingot-audio-alsa.c b/src/lingot-audio-alsa.c index deb0588..c2b8e5c 100644 --- a/src/lingot-audio-alsa.c +++ b/src/lingot-audio-alsa.c @@ -355,7 +355,7 @@ int lingot_audio_alsa_get_audio_system_properties( } result->n_devices++; - struct device_name_node_t* new_name_node = (struct device_name_node_t*) malloc(sizeof(struct device_name_node_t*)); + struct device_name_node_t* new_name_node = (struct device_name_node_t*) malloc(sizeof(struct device_name_node_t)); new_name_node->name = _strdup(device_name); new_name_node->next = NULL; diff --git a/src/lingot-audio-pulseaudio.c b/src/lingot-audio-pulseaudio.c index 068bf6c..7aeb0d3 100644 --- a/src/lingot-audio-pulseaudio.c +++ b/src/lingot-audio-pulseaudio.c @@ -339,7 +339,7 @@ static void lingot_audio_pulseaudio_get_source_info_callback(pa_context *c, // printf("\tlags %i\n", i->flags); struct device_name_node_t* new_name_node = (struct device_name_node_t*) - malloc(sizeof(struct device_name_node_t*)); + malloc(sizeof(struct device_name_node_t)); new_name_node->name = _strdup(buff); new_name_node->next = NULL; |
