--- hatari/src/gui-osx/Shared.m 2019/04/09 08:47:11 1.1.1.3 +++ hatari/src/gui-osx/Shared.m 2019/04/09 08:52:53 1.1.1.7 @@ -1,8 +1,8 @@ /* - Hatari - CreateFloppyController.m + Hatari - Shared.m - This file is distributed under the GNU Public License, version 2 or at - your option any later version. Read the file gpl.txt for details. + This file is distributed under the GNU General Public License, version 2 + or at your option any later version. Read the file gpl.txt for details. Helper code used by the other Cocoa code files @@ -60,7 +60,7 @@ void GuiOsx_ExportPathString(NSString* p NSCAssert((cchTarget > 0), @"Target buffer size must be greater than zero."); // Copy the string - strncpy(szTarget, [[path stringByExpandingTildeInPath] cString], cchTarget); + strncpy(szTarget, [[path stringByExpandingTildeInPath] cStringUsingEncoding:[NSString defaultCStringEncoding]], cchTarget); // Make sure it is null terminated (as strncpy does not null-terminate if the buffer is too small) szTarget[cchTarget - 1] = 0; @@ -70,7 +70,7 @@ void GuiOsx_ExportPathString(NSString* p /* Pauses emulation */ -void GuiOsx_Pause() +void GuiOsx_Pause(void) { // Pause emulation Main_PauseEmulation(false); @@ -80,7 +80,7 @@ void GuiOsx_Pause() /* Switches back to emulation mode */ -void GuiOsx_Resume() +void GuiOsx_Resume(void) { // Resume emulation Main_UnPauseEmulation();