diff options
author | marha <marha@users.sourceforge.net> | 2011-02-03 09:44:39 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-02-03 09:44:39 +0000 |
commit | 83a4fe0dc71aafbef11477b284abe530d3877556 (patch) | |
tree | 527158f28d9a46d1e9cc83b6c5fa6e8fbed956eb /libX11/src/xlibi18n/lcFile.c | |
parent | 60107fb2d201703dba061622101dafc139559bca (diff) | |
download | vcxsrv-83a4fe0dc71aafbef11477b284abe530d3877556.tar.gz vcxsrv-83a4fe0dc71aafbef11477b284abe530d3877556.tar.bz2 vcxsrv-83a4fe0dc71aafbef11477b284abe530d3877556.zip |
libXext xserver libXau libX11 pixman mesa git update 3 Feb 2011
Diffstat (limited to 'libX11/src/xlibi18n/lcFile.c')
-rw-r--r-- | libX11/src/xlibi18n/lcFile.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libX11/src/xlibi18n/lcFile.c b/libX11/src/xlibi18n/lcFile.c index 21a546d8f..18756c1ca 100644 --- a/libX11/src/xlibi18n/lcFile.c +++ b/libX11/src/xlibi18n/lcFile.c @@ -685,8 +685,7 @@ _XlcLocaleDirName(char *dir_name, size_t dir_len, char *lc_name) Xfree(name); continue; } - if ((1 + (target_dir ? strlen (target_dir) : 0) + - strlen("locale.dir")) < PATH_MAX) { + if ((1 + strlen (target_dir) + strlen("locale.dir")) < PATH_MAX) { sprintf(buf, "%s/locale.dir", target_dir); target_name = resolve_name(name, buf, RtoL); } @@ -785,8 +784,7 @@ _XlcLocaleLibDirName(char *dir_name, size_t dir_len, char *lc_name) Xfree(name); continue; } - if ((1 + (target_dir ? strlen (target_dir) : 0) + - strlen("locale.dir")) < PATH_MAX) { + if ((1 + strlen (target_dir) + strlen("locale.dir")) < PATH_MAX) { sprintf(buf, "%s/locale.dir", target_dir); target_name = resolve_name(name, buf, RtoL); } |