[vlc-commits] macosx: fixed crash when converting strings
Felix Paul Kühne
git at videolan.org
Sun Jun 5 21:08:31 CEST 2011
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sun Jun 5 20:48:35 2011 +0200| [44d336b3940f1a6192eef39cb94f14eff46f996e] | committer: Felix Paul Kühne
macosx: fixed crash when converting strings
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=44d336b3940f1a6192eef39cb94f14eff46f996e
---
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 e36d2f8..41a50f9 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -1170,7 +1170,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