libroot: Fix possible typo in printf_size.chrev51726
commit7766c048b33ed0859aaecdd26e2b670424c22c2f
authorohnx <me@masonx.ca>
Wed, 3 Jan 2018 17:10:10 +0000 (3 17:10 +0000)
committerJérôme Duval <jerome.duval@gmail.com>
Wed, 3 Jan 2018 18:42:55 +0000 (3 19:42 +0100)
treebac4a1bdf7b66b6be0592ccee9d4565d59918de9
parent36ef138ce5bea8bd0f634f23df827f5fdd326830
libroot: Fix possible typo in printf_size.c

It appears as if there is a typo in printf_size.c; it makes
no sense to compare an unitialized variable in such a way.
Since `info->width` is referenced later on in the variable
assignment, it seems possible that the intended statement
was to place the larger of the values between `info->width`
and `info->prec` into `width`.

Fixes CID 609431.

korli: Patch applied in cddfcf2f875f28695f367e90027167a989503273
was incomplete. This patch completes with what upstream did in 2004:
https://github.com/bminor/glibc/commit/fa5753eede3e97e94f50928989b313fb1fbdae6f.patch

Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
src/system/libroot/posix/glibc/stdio-common/printf_size.c