Skip to content

Commit

Permalink
Fix #28: too small buffer for IPv6 SSM
Browse files Browse the repository at this point in the history
Signed-off-by: Joachim Wiberg <[email protected]>
  • Loading branch information
troglobit committed Dec 20, 2022
1 parent 3d33bc2 commit b2162a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mcjoin.c
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ int main(int argc, char *argv[])
*/
for (i = optind; i < argc; i++) {
char *pos, *group, *source = NULL;
char buf[INET_ADDRSTR_LEN + 1];
char buf[2 * INET_ADDRSTR_LEN + 11];
int j, num = 1;

strlcpy(buf, argv[i], sizeof(buf));
Expand Down

0 comments on commit b2162a7

Please sign in to comment.