]> Savannah Git Hosting - gnulib.git/commit
vasnprintf: fix bugs in width computation
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 1 Sep 2014 02:19:44 +0000 (19:19 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 1 Sep 2014 02:21:56 +0000 (19:21 -0700)
commit1f5bc60c497c2b801681a3362c214fcf6a68f24a
tree9d136f4f6865f62c69559f9e63aef8c52c1176f0
parentc8842e6a275c7db033b14197d7dcb7de2b8d23b5
vasnprintf: fix bugs in width computation

* lib/vasnprintf.c (VASNPRINTF):
Rework previous change, which introduced a bug,
to avoid the warning in a different way.
Avoid undefined behavior if the width arg is less than -INT_MAX.
Avoid unnecessary use of HAS_WIDTH local.
ChangeLog
lib/vasnprintf.c