TIMIDITY: Don't use unsafe strcat and strcpy

This commit is contained in:
Le Philousophe 2022-10-02 20:48:46 +02:00 committed by Eugene Sandulenko
parent 7c657796f4
commit a3cc6b5218

View file

@ -331,7 +331,7 @@ char *MidiDriver_TIMIDITY::timidity_ctl_command(const char *fmt, ...) {
while (1) { while (1) {
/* read reply */ /* read reply */
if (fdgets(buff, sizeof(buff)) <= 0) { if (fdgets(buff, sizeof(buff)) <= 0) {
strcpy(buff, "Read error\n"); Common::strcpy_s(buff, "Read error\n");
break; break;
} }