Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src/logoutd.c: Fix theoretical buffer overrun
ut_line doesn't hold a string. It is a null-padded fixed-width array. Luckily, I don't think there has ever existed a ut_line ("/dev/tty*") that was 32 bytes long. That would have resulted in a buffer overrun. Anyway, do the right thing, which is copying into a temporary string. Signed-off-by: Alejandro Colomar <[email protected]>
- Loading branch information