diff --git a/include/ggwave/ggwave.h b/include/ggwave/ggwave.h index 5cdd01c..7690cc6 100644 --- a/include/ggwave/ggwave.h +++ b/include/ggwave/ggwave.h @@ -263,6 +263,7 @@ extern "C" { // // int ret = ggwave_decode(instance, waveform, samplesPerFrame*sizeOfSample_bytes, payload); // if (ret > 0) { + // payload[ret] = 0; // null terminate the string // printf("Received payload: '%s'\n", payload); // } // }