Re: [PATCH] fix the handling of string precision in pretty printer (PR 81586)

2017-08-02 Thread Jeff Law
On 07/27/2017 05:29 PM, Martin Sebor wrote: > The pretty printer treats precision in %s directives as a request > to print exactly as many characters from the string argument when > what precision normally (in C) means is the maximum number of > characters to read from the string. It doesn't mean

[PATCH] fix the handling of string precision in pretty printer (PR 81586)

2017-07-27 Thread Martin Sebor
The pretty printer treats precision in %s directives as a request to print exactly as many characters from the string argument when what precision normally (in C) means is the maximum number of characters to read from the string. It doesn't mean to read past the terminating NUL. The attached pat