Phillip Wood <phillip.wood@xxxxxxxxxxxx> writes: >> Are we misusing C formats? > > The C standard and POSIX both say that the * refers to the maximum > number of bytes to print but it looks like it is being treated as the > maximum number of characters on OpenIndiana. > > Johannes - Perhaps we should change it to use fwrite() unless printf() > gets fixed and we're sure no other operating systems are affected? Avoid such a rewrite, as "%*.s" that takes (int, char *) are used in many other places in our codebase, if you can.