1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

s4/auth/tests: Fix kerberos test string size

>>> len("user0@samba.example.com")
23

But the string definition does not take a final '\0' into account.
As per Volker's suggestion, use compiler's support to allocate
the string properly.

Signed-off-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
Alexander Bokovoy 2018-10-03 22:48:00 +03:00 committed by Volker Lendecke
parent 43a0e635ea
commit 54207bb3b2

View File

@ -25,8 +25,8 @@ static void internal_obsolete_keytab_test(int num_principals, int num_kvnos,
krb5_error_code code;
int i,j;
char princ_name[6] = "user0";
char expect_princ_name[23] = "user0@samba.example.com";
char princ_name[] = "user0";
char expect_princ_name[] = "user0@samba.example.com";
bool found_previous;
const char *error_str;