Skip to content

Commit

Permalink
typo in bounds check, sigh...
Browse files Browse the repository at this point in the history
  • Loading branch information
omar-polo committed Jun 12, 2024
1 parent 96eaf14 commit c616a6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gmid.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ main(int argc, char **argv)
>= sizeof(conf->user))
fatalx("user name too long: %s", user);
if (chroot && strlcpy(conf->chroot, chroot, sizeof(conf->chroot))
>= sizeof(conf->user))
>= sizeof(conf->chroot))
fatalx("chroot path too long: %s", chroot);
}

Expand Down

0 comments on commit c616a6d

Please sign in to comment.