Skip to content

Commit

Permalink
printf formatting with char* and length not used properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Gagnon committed Nov 26, 2021
1 parent 895ac87 commit b8b5767
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/findlib/xattr.cc
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ uint32_t SerializeXattrStream(JobControlRecord* jcr,
if (current_xattr->value_length > 0 && current_xattr->value) {
SerBytes(current_xattr->value, current_xattr->value_length);

Dmsg3(100, "Backup xattr named %s, value %*s\n", current_xattr->name,
Dmsg3(100, "Backup xattr named %s, value %.*s\n", current_xattr->name,
current_xattr->value_length, current_xattr->value);
} else {
Dmsg1(100, "Backup empty xattr named %s\n", current_xattr->name);
Expand Down

0 comments on commit b8b5767

Please sign in to comment.