jackaudio / jack-example-tools

Official examples and tools from the JACK project
GNU General Public License v2.0
37 stars 14 forks source link

Fix crash in midi_latency_test #68

Closed Teemperor closed 2 years ago

Teemperor commented 2 years ago

s points to a constant string literal in the current code (which is in practice just a pointer in some read-only memory). The next line s[2] = c; either crashes or just gets completely removed by the compiler as it attempts to write to read-only memory.

falkTX commented 2 years ago

Thanks, will merge