diff --git a/softsynth.c b/softsynth.c index 0a7f81e..bfa9969 100644 --- a/softsynth.c +++ b/softsynth.c @@ -168,7 +168,7 @@ void main_loop(struct synth_t *s) if (cp) { queue_clear(); stop_speech(); - memmove(buf, cp+1, strlen(cp + 1)); + memmove(buf, cp+1, strlen(cp + 1) + 1); length = strlen(buf); } process_buffer(s, buf, length);