Commit 0699b600 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Compile fix

parent 4f6d4ba0
...@@ -1182,12 +1182,12 @@ static inline int LoadMessages (void) ...@@ -1182,12 +1182,12 @@ static inline int LoadMessages (void)
#if !defined( __APPLE__ ) && !defined( WIN32 ) && !defined( SYS_BEOS ) #if !defined( __APPLE__ ) && !defined( WIN32 ) && !defined( SYS_BEOS )
static const char psz_path[] = LOCALEDIR; static const char psz_path[] = LOCALEDIR;
#else #else
char buf[1024]; char psz_path[1024];
if (snprintf (buf, sizeof (buf), "%s/%s", libvlc_global.psz_vlcpath, if (snprintf (psz_path, sizeof (psz_path), "%s/%s",
"locale")) >= sizeof (buf) libvlc_global.psz_vlcpath, "locale")
>= (int)sizeof (psz_path))
return -1; return -1;
const char *psz_path = psz_tmp;
#endif #endif
if (bindtextdomain (PACKAGE_NAME, psz_path) == NULL) if (bindtextdomain (PACKAGE_NAME, psz_path) == NULL)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment