diff options
author | D G Turner | 2014-03-19 04:18:27 +0000 |
---|---|---|
committer | D G Turner | 2014-03-22 01:13:45 +0000 |
commit | 3bcc3a6849bcf27a35790581bb4476f9ed2a4355 (patch) | |
tree | 586dd091c537220bdc40417424ea1ad6c393771a /backends/midi | |
parent | 22634d18ba5a4d831878df7b29f715a9318994e0 (diff) | |
download | scummvm-rg350-3bcc3a6849bcf27a35790581bb4476f9ed2a4355.tar.gz scummvm-rg350-3bcc3a6849bcf27a35790581bb4476f9ed2a4355.tar.bz2 scummvm-rg350-3bcc3a6849bcf27a35790581bb4476f9ed2a4355.zip |
AMIGAOS: Minor change to replace strcpy usage with safer strlcpy.
Diffstat (limited to 'backends/midi')
-rw-r--r-- | backends/midi/camd.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 |