summaryrefslogtreecommitdiff
path: root/source3/lib/charset.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/charset.c')
-rw-r--r--source3/lib/charset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/charset.c b/source3/lib/charset.c
index fcaca79b88..d699df3e2b 100644
--- a/source3/lib/charset.c
+++ b/source3/lib/charset.c
@@ -205,7 +205,7 @@ static codepage_p load_client_codepage( int client_codepage )
pstrcat(codepage_file_name, "/");
pstrcat(codepage_file_name, "codepage.");
slprintf(&codepage_file_name[strlen(codepage_file_name)],
- sizeof(pstring)-(strlen(codepage_file_name)+1),
+ sizeof(pstring)-(strlen(codepage_file_name)+1)-1,
"%03d",
client_codepage);