more precise usage of MAX_*_SIZE definitions.

This commit is contained in:
Nikos Mavrogiannopoulos
2014-05-21 06:21:34 +02:00
parent 8e67f959ed
commit 7153ea8ea7
2 changed files with 2 additions and 2 deletions

View File

@@ -390,7 +390,7 @@ int handle_sec_auth_init(sec_mod_st * sec, const SecAuthInitMsg * req)
module->auth_user(e->auth_ctx, e->username,
sizeof(e->username));
if (ret != 0 && req->user_name != NULL) {
snprintf(e->username, MAX_USERNAME_SIZE, "%s",
snprintf(e->username, sizeof(e->username), "%s",
req->user_name);
}
}