1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-24 04:23:53 +03:00

Got "medieval on our ass" about adding the -1 to slprintf.

Jeremy.
This commit is contained in:
Jeremy Allison
-
parent d786191bc1
commit 94747b4639
31 changed files with 85 additions and 85 deletions

View File

@@ -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);