Skip to content
Prev 32441 / 63421 Next

incorrect output and segfaults from sprintf with %*d (PR#13675)

On Fri, Apr 24, 2009 at 14:40, Wacek Kusnierczyk
<Waclaw.Marcin.Kusnierczyk at idi.ntnu.no> wrote:
tput using the
th of strings included
appen (output
y
yes.
be a
s and
ok.
yes.  As a matter of fact,  "%q%s" is dealt with as *one* format
chunk, since "%q" is
not a valid format.
The code I have just committed now gives a longer erro message, that
should be more helpful.
Thank you for the suggestion!
I think we should signal an error if there are too many arguments.
Could anyone think of a case where the current behavior is desirable ?
actually I think it should be changed to be more strict (see above).

Thank you for the constructive feedback!
Martin