summaryrefslogtreecommitdiff
path: root/wmamixer.c
diff options
context:
space:
mode:
Diffstat (limited to 'wmamixer.c')
-rw-r--r--wmamixer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wmamixer.c b/wmamixer.c
index 7c0e00e..7e85437 100644
--- a/wmamixer.c
+++ b/wmamixer.c
@@ -312,7 +312,7 @@ void Selem_set_name(struct Selem *selem, const char *name, short int *count) {
snprintf(new_name, sizeof(new_name), "%s%d", buf, *count);
}
- selem->name = new_name;
+ selem->name = strdup(new_name);
*count = *count + 1;
}