MORPHOS: Don't use unsafe sprintf and vsprintf

This commit is contained in:
Le Philousophe 2022-10-23 15:31:56 +02:00 committed by Eugene Sandulenko
parent 29f5d51972
commit a60e8ff2cb

View File

@ -324,7 +324,7 @@ AbstractFSList MorphOSFilesystemNode::listVolumes() const {
volumeLock = Lock(buffer, SHARED_LOCK);
if (volumeLock) {
sprintf(buffer, "%s (%s)", volName, devName);
Common::sprintf_s(buffer, "%s (%s)", volName, devName);
entry = new MorphOSFilesystemNode(volumeLock, buffer);
if (entry) {