From: Ralph Corderoy Date: Wed, 22 Nov 2017 13:44:01 +0000 (+0000) Subject: Rewrite cpnumber() to fix `%2(msg)' with 123 overflowing to `?23'. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/a034d7e5edab2f0d56a62f6e1fcbbc76f3e5f31b?hp=a034d7e5edab2f0d56a62f6e1fcbbc76f3e5f31b Rewrite cpnumber() to fix `%2(msg)' with 123 overflowing to `?23'. Reported in 1.7 by Ken on nmh-workers yesterday. `It seems this was introduced in commit 92128dacf'. We now use the C library to format the number, and then manipulate the result. A temporary charstring_t is no longer used. Also adds left justification using negative width. ---