]> git.eshelyaron.com Git - emacs.git/commit
* eval.c: Port to Windows vsnprintf (Bug#8435).
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 8 Apr 2011 23:28:52 +0000 (16:28 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 8 Apr 2011 23:28:52 +0000 (16:28 -0700)
commiteb3f1cc8dfe6a96505f1c5f9174b2712998cb52f
tree6a665600f22bde851b7112ffb2c3ac724f4972c5
parent7ec98caf7757bbf462d91a5cebd440cf12cc5816
* eval.c: Port to Windows vsnprintf (Bug#8435).

Include <limits.h>.
(SIZE_MAX): Define if the headers do not.
(verror): Do not give up if vsnprintf returns a negative count.
Instead, grow the buffer.  This ports to Windows vsnprintf, which
does not conform to C99.  Problem reported by Eli Zaretskii.
Also, simplify the allocation scheme, by avoiding the need for
calling realloc, and removing the ALLOCATED variable.
src/ChangeLog
src/eval.c