Skip to content

Commit

Permalink
Fix community host not being properly null terminated
Browse files Browse the repository at this point in the history
  • Loading branch information
rollerozxa committed Jun 22, 2024
1 parent 5abe0a3 commit 125432b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/src/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,7 @@ tproject_set_args(int argc, char **argv)
}

strncpy(_community_host, s, n);
_community_host[n] = '\0';
s += n;

if (*s == '\0') {
Expand Down

0 comments on commit 125432b

Please sign in to comment.