--- 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:49:22 1.1.1.5 @@ -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();