]> git.sesse.net Git - vlc/commitdiff
Compile fix
authorRémi Denis-Courmont <rem@videolan.org>
Tue, 6 Mar 2007 20:04:26 +0000 (20:04 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Tue, 6 Mar 2007 20:04:26 +0000 (20:04 +0000)
src/libvlc-common.c

index e86ffa4fce983282a845da6f478f56d0a8ea250f..c33e6a736641397e6f697ea3f37e281bcc727a4d 100644 (file)
@@ -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)
     {