CVSROOT:        /cvs
Module name:    src
Changes by:     t...@cvs.openbsd.org    2021/07/29 20:46:53

Modified files:
        usr.bin/jot    : jot.c 

Log message:
Do bounds check before assignment

As reported by alf (alf.schlichting lemarit com) on bugs@, a bounds check
didn't trigger because it was performed after assignment, so truncation
would happen for large ranges. Fix this and clean up and simplify the code
a bit.

ok deraadt millert

Reply via email to