From: Ralph Corderoy Date: Wed, 10 May 2017 11:13:28 +0000 (+0100) Subject: sbr/fmt_scan.c: Fix `foo%-42{bar}' right-justification bug. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/7083c89c5461aa345eec1e47e5fb047d31832c7a?hp=7083c89c5461aa345eec1e47e5fb047d31832c7a sbr/fmt_scan.c: Fix `foo%-42{bar}' right-justification bug. The space padding was added at the start of the output buffer, not the start of the component being formatted. Caused by 92128dac's move to dynamic allocation for fmt_scan()'s output. Only shows if the component isn't at the start of the buffer. Expand existing test/format/test-rightjustify to cover this. ---