diff options
author | Tim Potter <tpot@samba.org> | 2000-12-01 01:14:55 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2000-12-01 01:14:55 +0000 |
commit | ec74fdc631fbd5f0b5450df02acb9cd98c153823 (patch) | |
tree | 4cf8cff0d7bcf08dc6c18c99a59f1e2e3f018d62 /source/lib/util_unistr.c | |
parent | 52e9311bc2a837d1f4791f36c3477c430f841378 (diff) | |
download | samba-ec74fdc631fbd5f0b5450df02acb9cd98c153823.tar.gz samba-ec74fdc631fbd5f0b5450df02acb9cd98c153823.tar.xz samba-ec74fdc631fbd5f0b5450df02acb9cd98c153823.zip |
Use lp_codepagedir() instead of CODEPAGEDIR when loading the unicode map.
Found by Joseph Cheek <joseph@cheek.com>
Diffstat (limited to 'source/lib/util_unistr.c')
-rw-r--r-- | source/lib/util_unistr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/lib/util_unistr.c b/source/lib/util_unistr.c index ad387b4e9d4..74ecc841d00 100644 --- a/source/lib/util_unistr.c +++ b/source/lib/util_unistr.c @@ -547,12 +547,13 @@ BOOL load_unicode_map(const char *codepage, smb_ucs2_t **pp_cp_to_ucs2, uint16 * if (*codepage == '\0') goto clean_and_exit; - if(strlen(CODEPAGEDIR) + 13 + strlen(codepage) > sizeof(unicode_map_file_name)) { + if(strlen(lp_codepagedir()) + 13 + strlen(codepage) > + sizeof(unicode_map_file_name)) { DEBUG(0,("load_unicode_map: filename too long to load\n")); goto clean_and_exit; } - pstrcpy(unicode_map_file_name, CODEPAGEDIR); + pstrcpy(unicode_map_file_name, lp_codepagedir()); pstrcat(unicode_map_file_name, "/"); pstrcat(unicode_map_file_name, "unicode_map."); pstrcat(unicode_map_file_name, codepage); |