--- hatari/src/gui-osx/Shared.m 2019/04/09 08:48:36 1.1.1.4 +++ hatari/src/gui-osx/Shared.m 2019/04/09 08:51:01 1.1.1.6 @@ -1,5 +1,5 @@ /* - 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. @@ -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;