d90244c003be — Chris Cannam 2 years ago
Avoid theoretical buffer overflow
1 files changed, 2 insertions(+), 2 deletions(-)

M src/JACKAudioIO.cpp
M src/JACKAudioIO.cpp +2 -2
@@ 242,7 242,7 @@ JACKAudioIO::setup(bool connectRecord, b
 
         while (int(m_outputs.size()) < channelsPlay) {
 	
-            char name[20];
+            char name[50];
             jack_port_t *port;
 
             sprintf(name, "out %ld", long(m_outputs.size() + 1));

          
@@ 280,7 280,7 @@ JACKAudioIO::setup(bool connectRecord, b
 
         while (int(m_inputs.size()) < channelsRec) {
 	
-            char name[20];
+            char name[50];
             jack_port_t *port;
 
             sprintf(name, "in %ld", long(m_inputs.size() + 1));