diff options
| author | Roman Dobosz <gryf73@gmail.com> | 2015-08-11 21:20:02 +0200 |
|---|---|---|
| committer | Roman Dobosz <gryf73@gmail.com> | 2015-08-11 21:20:02 +0200 |
| commit | 266aa500f7d5bc67e7fb78af24c0add51f755043 (patch) | |
| tree | 7065d91b992fae32fe99fadedfb01b981bb78382 | |
| parent | 8d9ae094f9c379d3060fea0f46de55c04339124e (diff) | |
| download | wmamixer-266aa500f7d5bc67e7fb78af24c0add51f755043.tar.gz wmamixer-266aa500f7d5bc67e7fb78af24c0add51f755043.tar.bz2 wmamixer-266aa500f7d5bc67e7fb78af24c0add51f755043.zip | |
Fix possible memory issues
| -rw-r--r-- | wmamixer.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |
