Ensure termination in Windows vsnprintf wrapper
authorGreg Hudson <ghudson@mit.edu>
Tue, 18 Oct 2011 16:32:28 +0000 (16:32 +0000)
committerGreg Hudson <ghudson@mit.edu>
Tue, 18 Oct 2011 16:32:28 +0000 (16:32 +0000)
commitddea50b5a7e04a28e2a15b2989125ccc4532ccf6
tree35f8c11b561f35a0b8bcbc54190a440cfdaa4ef9
parentcb6d42ecaf62749f661d9f7f0c647bcaa4118eda
Ensure termination in Windows vsnprintf wrapper

The Windows _vsnprintf does not terminate its output buffer in the
overflow case.  Make sure we do that in the wrapper.  Reported by
Chris Hecker.

(Not an issue for KfW 3.2 since we weren't using snprintf in 1.6.x
except in Unix-specific code.)

ticket: 6980
target_version: 1.10
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25367 dc483132-0cff-0310-8789-dd5450dbe970
src/include/k5-platform.h