[vlc-commits] macosx: fixed crash when converting strings
Felix Paul Kühne
git at videolan.org
Sun Jun 5 19:19:44 CEST 2011
vlc/vlc-1.1 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sun Jun 5 19:10:03 2011 +0200| [f7a1db99be1a1aec6749f33e25e48232699d8308] | committer: Felix Paul Kühne
macosx: fixed crash when converting strings
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=f7a1db99be1a1aec6749f33e25e48232699d8308
---
modules/gui/macosx/intf.m | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 8abc6be..fe49d88 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -1178,7 +1178,7 @@ static NSString * VLCToolbarMediaControl = @"VLCToolbarMediaControl";
if( psz != NULL )
{
- o_str = [[[NSString alloc] initWithUTF8String: psz] autorelease];
+ o_str = [[[NSString alloc] initWithFormat:@"%s", psz] autorelease];
if( o_str == NULL )
{
More information about the vlc-commits
mailing list