mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 00:37:00 +08:00
tests: generate_oidc_test_data: fixed used of strncat
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
This commit is contained in:
committed by
Nikos Mavrogiannopoulos
parent
370cc7cdf7
commit
bf8616cbca
@@ -266,7 +266,8 @@ int main(int argc, char **argv)
|
||||
if (!getcwd(working_directory, sizeof(working_directory))) {
|
||||
return 1;
|
||||
}
|
||||
strncat(working_directory, "/data", sizeof(working_directory));
|
||||
strncat(working_directory, "/data", sizeof(working_directory)-1);
|
||||
working_directory[sizeof(working_directory)-1] = 0;
|
||||
|
||||
cjose_jwk_t *key = create_key("My Fake Key");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user