From d51819e51fca80675b9915863e72d835c9e0a0fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20B=C5=99ezina?= Date: Tue, 27 Oct 2020 17:09:43 +0100 Subject: [PATCH 11/19] kcm: add spaces around operators in kcmsrv_ccache_key.c --- src/responder/kcm/kcmsrv_ccache_key.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/responder/kcm/kcmsrv_ccache_key.c b/src/responder/kcm/kcmsrv_ccache_key.c index 4a24c38d45918632201740bfc82579a2449aa8f7..59d60453c5d5e28ccda8f98c63125954640d0e8b 100644 --- a/src/responder/kcm/kcmsrv_ccache_key.c +++ b/src/responder/kcm/kcmsrv_ccache_key.c @@ -75,12 +75,12 @@ errno_t sec_key_parse(TALLOC_CTX *mem_ctx, return EINVAL; } - strncpy(uuid_str, sec_key, sizeof(uuid_str)-1); + strncpy(uuid_str, sec_key, sizeof(uuid_str) - 1); if (sec_key[UUID_STR_SIZE - 1] != SEC_KEY_SEPARATOR) { DEBUG(SSSDBG_CRIT_FAILURE, "Key doesn't contain the separator\n"); return EINVAL; } - uuid_str[UUID_STR_SIZE-1] = '\0'; + uuid_str[UUID_STR_SIZE - 1] = '\0'; *_name = talloc_strdup(mem_ctx, sec_key + UUID_STR_SIZE); if (*_name == NULL) { @@ -100,8 +100,8 @@ errno_t sec_key_get_uuid(const char *sec_key, return EINVAL; } - strncpy(uuid_str, sec_key, UUID_STR_SIZE-1); - uuid_str[UUID_STR_SIZE-1] = '\0'; + strncpy(uuid_str, sec_key, UUID_STR_SIZE - 1); + uuid_str[UUID_STR_SIZE - 1] = '\0'; uuid_parse(uuid_str, uuid); return EOK; } -- 2.25.4