From 13f287fbc2ce4d92c9c2da328250bb38e9266ad7 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 16 Feb 2011 16:44:41 +1100 Subject: lib/util/charset use get_dyn_CODEPAGEDIR(), which is in common This is provided by the s3 and s4 dynconfig implementations. Andrew Bartlett --- lib/util/charset/codepoints.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/util/charset/codepoints.c b/lib/util/charset/codepoints.c index 5e02935694..5dc76143e2 100644 --- a/lib/util/charset/codepoints.c +++ b/lib/util/charset/codepoints.c @@ -44,8 +44,8 @@ void load_case_tables(void) if (!mem_ctx) { smb_panic("No memory for case_tables"); } - upcase_table = map_file(talloc_asprintf(mem_ctx, "%s/upcase.dat", dyn_CODEPAGEDIR), 0x20000); - lowcase_table = map_file(talloc_asprintf(mem_ctx, "%s/lowcase.dat", dyn_CODEPAGEDIR), 0x20000); + upcase_table = map_file(talloc_asprintf(mem_ctx, "%s/upcase.dat", get_dyn_CODEPAGEDIR()), 0x20000); + lowcase_table = map_file(talloc_asprintf(mem_ctx, "%s/lowcase.dat", get_dyn_CODEPAGEDIR()), 0x20000); talloc_free(mem_ctx); if (upcase_table == NULL) { upcase_table = (void *)-1; -- cgit