CVSROOT: /cvs Module name: src Changes by: [email protected] 2021/08/13 04:40:23
Modified files:
usr.bin/jot : jot.c
Log message:
Make sure prec is non-negative before calling getformat()
If jot is called without arguments, getformat() produces the illegal
"%.-1f" format string. __vfprintf() misinterprets the - as a left
adjust flag and uses a precision of 0. Set prec = 0 so that we use
"%.0f" in this situation.
ok martijn
