From 077c41cc60316c44d2f3f85e14fe15acd22ccc1f Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 6 Oct 2000 23:35:55 +0000 Subject: Fix for printf attribute from Mattias Gronlund Added "codepage directory" patch from Peter.Polkinghorne@brunel.ac.uk Jeremy. (This used to be commit e49566c2e21fcd16980e5110495645c5ae5a36da) --- source3/lib/charset.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/lib') 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 */ -- cgit