ref: 0cda7774dfa19e5a4da3d91a47289c5f9d48ab7c
parent: f140e52941bed2b902411f6eab0804c81fd4a072
author: Mans Rullgard <mans@mansr.com>
date: Sat Aug 1 09:47:21 EDT 2020
tx16w: silence compiler warning Replace strange use of strncpy() with equivalent memcpy().
--- a/src/tx16w.c
+++ b/src/tx16w.c
@@ -302,7 +302,7 @@
lsx_debug("tx16w:output finished");
memset(&WH, 0, sizeof(struct WaveHeader_));
- strncpy(WH.filetype,"LM8953",(size_t)6);
+ memcpy(WH.filetype, "LM8953", 6);
for (i=0;i<10;i++) WH.nulls[i]=0;
for (i=0;i<6;i++) WH.dummy_aeg[i]=0;
for (i=0;i<2;i++) WH.unused[i]=0;