aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/inputPlugins/wavpack_plugin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inputPlugins/wavpack_plugin.c b/src/inputPlugins/wavpack_plugin.c
index 8f0685aa2..e25b5099c 100644
--- a/src/inputPlugins/wavpack_plugin.c
+++ b/src/inputPlugins/wavpack_plugin.c
@@ -468,12 +468,12 @@ static int wavpack_streamdecode(OutputBuffer *cb, DecoderControl *dc,
break;
}
- wvc_url = (char *)malloc(len + 2); /* +2: 'c' and EOS */
+ wvc_url = (char *)xmalloc(len + 2); /* +2: 'c' and EOS */
if (wvc_url == NULL) {
break;
}
- strncpy(wvc_url, dc->utf8url, len);
+ memcpy(wvc_url, dc->utf8url, len);
wvc_url[len] = 'c';
wvc_url[len + 1] = '\0';