From e396023d517f1f00c2205886c7ce94fd4c0d854b Mon Sep 17 00:00:00 2001 From: Joe Groff Date: Sat, 26 Jan 2008 17:32:12 -0800 Subject: [PATCH] Use [NSString UTF8String] instead of [NSString cString] in os-macosx.m to suppress deprecation warnings --- vm/os-macosx.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vm/os-macosx.m b/vm/os-macosx.m index 07695b77fb..d14e6ceb23 100644 --- a/vm/os-macosx.m +++ b/vm/os-macosx.m @@ -30,7 +30,7 @@ void early_init(void) const char *vm_executable_path(void) { - return [[[NSBundle mainBundle] executablePath] cString]; + return [[[NSBundle mainBundle] executablePath] UTF8String]; } const char *default_image_path(void) @@ -55,7 +55,7 @@ const char *default_image_path(void) else returnVal = [path stringByAppendingPathComponent:image]; - return [returnVal cString]; + return [returnVal UTF8String]; } void init_signals(void)