Skip to content

Commit

Permalink
cm4-tool: send path with terminating '\0'
Browse files Browse the repository at this point in the history
JIRA: NIL-428
  • Loading branch information
ziemleszcz committed Jun 18, 2024
1 parent 75d13b6 commit 1c234da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cm4-tool/tool.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ int main(int argc, char *argv[])
if (file) {
i->cm4_type = CM4_LOAD_FILE;
msg.i.data = path;
msg.i.size = strlen(path);
msg.i.size = strlen(path) + 1;
}
else {
i->cm4_type = CM4_LOAD_BUFF;
Expand Down

0 comments on commit 1c234da

Please sign in to comment.