Skip to content

Commit

Permalink
Refactor: libcrmcommon: don't use strncat() where strcat() will do
Browse files Browse the repository at this point in the history
... otherwise newer gcc will complain
  • Loading branch information
kgaillot committed Jun 5, 2020
1 parent e89016a commit 8317a3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/common/cib_secrets.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ pcmk__substitute_secrets(const char *rsc_id, GHashTable *params)
continue;

} else {
strncat(hash_file, ".sign", 5);
strcat(hash_file, ".sign");
hash = read_local_file(hash_file);
if (hash == NULL) {
crm_err("md5 sum for rsc %s parameter %s "
Expand Down

0 comments on commit 8317a3c

Please sign in to comment.