diff plugin/plugins/SamplePlayer.cpp @ 1465:cee1be4fb8c1

Fix some compiler warnings
author Chris Cannam
date Tue, 15 May 2018 11:03:49 +0100
parents 48e9f538e6e9
children 70e172e6cc59
line wrap: on
line diff
--- a/plugin/plugins/SamplePlayer.cpp	Fri May 11 14:11:04 2018 +0100
+++ b/plugin/plugins/SamplePlayer.cpp	Tue May 15 11:03:49 2018 +0100
@@ -271,7 +271,7 @@
     static DSSI_Program_Descriptor descriptor;
     static char name[60];
 
-    strncpy(name, player->m_samples[program].first.toLocal8Bit().data(), 60);
+    strncpy(name, player->m_samples[program].first.toLocal8Bit().data(), 59);
     name[59] = '\0';
 
     descriptor.Bank = 0;