From c1441714b523d9a390165846632dc18ea10ba91b Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Tue, 23 Oct 2001 11:22:33 +0000 Subject: zero %n value when reusing printf format (16122) --- Test/B03print.ztst | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Test') diff --git a/Test/B03print.ztst b/Test/B03print.ztst index 3968faec3..1aa6d2051 100644 --- a/Test/B03print.ztst +++ b/Test/B03print.ztst @@ -144,6 +144,11 @@ >two b:0x2% >three c:0x3% + printf '%d%n' 123 val val val > /dev/null + printf '%d\n' val +0:%n count zeroed on format reuse +>1 + # this should fill spec string with '%0+- #*.*d\0' - 11 characters printf '%1$0+- #-08.5dx\n' 123 0:maximal length format specification -- cgit 1.4.1