1) Fix the case we have less arguments for format string than we expected.
2) Return error on unsupported format specs.
(both according to POSIX)

PR:     93197


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272679 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f