]> git.ipfire.org Git - thirdparty/coreutils.git/commit
numfmt: fix printf argument order
authorAssaf Gordon <assafgordon@gmail.com>
Mon, 29 Jun 2015 11:54:41 +0000 (12:54 +0100)
committerPádraig Brady <P@draigBrady.com>
Mon, 29 Jun 2015 11:59:19 +0000 (12:59 +0100)
commitbadecb3f6ce21e9ad12402d4dd96d9a532499710
treeabb5ae6edadc36497031e788f2167c47b872f641
parenteff511bd3cecaab30df75a854f01566ce45c5876
numfmt: fix printf argument order

* src/numfmt.c (double_to_human): Fix the argument order
passed to snprintf, which happened to work on amd64 with
its separate va_arg storage area for floats¹,
but would fail tests for example on i686.

¹ https://blog.nelhage.com/2010/10/amd64-and-va_arg/
src/numfmt.c