summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-10-06 23:35:55 +0000
committerJeremy Allison <jra@samba.org>2000-10-06 23:35:55 +0000
commit077c41cc60316c44d2f3f85e14fe15acd22ccc1f (patch)
tree95a55fe7d01ab0279228ff52d6e5b36679da8d73 /source3/lib
parent74d4a3b7410547d9f65bfc26de5f22c623574afd (diff)
downloadsamba-077c41cc60316c44d2f3f85e14fe15acd22ccc1f.tar.gz
samba-077c41cc60316c44d2f3f85e14fe15acd22ccc1f.tar.bz2
samba-077c41cc60316c44d2f3f85e14fe15acd22ccc1f.zip
Fix for printf attribute from Mattias Gronlund <Mattias.Gronlund@sa.erisoft.se>
Added "codepage directory" patch from Peter.Polkinghorne@brunel.ac.uk Jeremy. (This used to be commit e49566c2e21fcd16980e5110495645c5ae5a36da)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/charset.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/lib/charset.c b/source3/lib/charset.c
index 3d081246fd..fcaca79b88 100644
--- a/source3/lib/charset.c
+++ b/source3/lib/charset.c
@@ -195,13 +195,13 @@ static codepage_p load_client_codepage( int client_codepage )
DEBUG(5, ("load_client_codepage: loading codepage %d.\n", client_codepage));
- if(strlen(CODEPAGEDIR) + 14 > sizeof(codepage_file_name))
+ if(strlen(lp_codepagedir()) + 14 > sizeof(codepage_file_name))
{
DEBUG(0,("load_client_codepage: filename too long to load\n"));
return NULL;
}
- pstrcpy(codepage_file_name, CODEPAGEDIR);
+ pstrcpy(codepage_file_name, lp_codepagedir());
pstrcat(codepage_file_name, "/");
pstrcat(codepage_file_name, "codepage.");
slprintf(&codepage_file_name[strlen(codepage_file_name)],
@@ -348,13 +348,13 @@ void codepage_initialise(int client_codepage)
#ifdef KANJI
DEBUG(6,("codepage_initialise: loading dynamic codepage file %s/codepage.%d \
for code page %d failed. Using default client codepage 932\n",
- CODEPAGEDIR, client_codepage, client_codepage));
+ lp_codepagedir(), client_codepage, client_codepage));
cp = cp_932;
client_codepage = KANJI_CODEPAGE;
#else /* KANJI */
DEBUG(6,("codepage_initialise: loading dynamic codepage file %s/codepage.%d \
for code page %d failed. Using default client codepage 850\n",
- CODEPAGEDIR, client_codepage, client_codepage));
+ lp_codepagedir(), client_codepage, client_codepage));
cp = cp_850;
client_codepage = MSDOS_LATIN_1_CODEPAGE;
#endif /* KANJI */