From 3bcc3a6849bcf27a35790581bb4476f9ed2a4355 Mon Sep 17 00:00:00 2001 From: D G Turner Date: Wed, 19 Mar 2014 04:18:27 +0000 Subject: AMIGAOS: Minor change to replace strcpy usage with safer strlcpy. --- backends/midi/camd.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'backends') diff --git a/backends/midi/camd.cpp b/backends/midi/camd.cpp index 9cee2a84a6..d91aef5533 100644 --- a/backends/midi/camd.cpp +++ b/backends/midi/camd.cpp @@ -31,6 +31,7 @@ #include "common/error.h" #include "common/endian.h" #include "common/util.h" +#include "common/str.h" #include "audio/musicplugin.h" #include "audio/mpu401.h" @@ -157,7 +158,7 @@ char *MidiDriver_CAMD::getDevice() { if (strstr(dev, "out") != NULL) { // This is an output device, return this - strcpy(_outport, dev); + Common::strlcpy(_outport, dev, sizeof(_outport)); retname = _outport; } else { // Search the next one -- cgit v1.2.3