When a precision is specified for a string format use strnlen()
authormillert <millert@openbsd.org>
Sat, 27 Aug 2016 16:10:40 +0000 (16:10 +0000)
committermillert <millert@openbsd.org>
Sat, 27 Aug 2016 16:10:40 +0000 (16:10 +0000)
commitb3e86db50598b6bdbfee08b867c2e335e2ead080
tree7fbeb0705dfc9fc6068838df6b7df498dfa60f68
parentfeb4b77d485b894314b72abe356e210a4bd362ae
When a precision is specified for a string format use strnlen()
to determine the length instead of doing it manually.  OK schwarze@
lib/libc/stdio/vfprintf.c