From: RĂ©mi Denis-Courmont Date: Tue, 6 Mar 2007 20:04:26 +0000 (+0000) Subject: Compile fix X-Git-Tag: 0.9.0-test0~8223 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=0699b600bf3cfecc4ec7f09276f2bd86d66bf629;p=vlc Compile fix --- diff --git a/src/libvlc-common.c b/src/libvlc-common.c index e86ffa4fce..c33e6a7366 100644 --- a/src/libvlc-common.c +++ b/src/libvlc-common.c @@ -1182,12 +1182,12 @@ static inline int LoadMessages (void) #if !defined( __APPLE__ ) && !defined( WIN32 ) && !defined( SYS_BEOS ) static const char psz_path[] = LOCALEDIR; #else - char buf[1024]; - if (snprintf (buf, sizeof (buf), "%s/%s", libvlc_global.psz_vlcpath, - "locale")) >= sizeof (buf) + char psz_path[1024]; + if (snprintf (psz_path, sizeof (psz_path), "%s/%s", + libvlc_global.psz_vlcpath, "locale") + >= (int)sizeof (psz_path)) return -1; - const char *psz_path = psz_tmp; #endif if (bindtextdomain (PACKAGE_NAME, psz_path) == NULL) {