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