Windows: Don't attempt to copy a string to a zero length buffer
authorAsanka Herath <asanka@secure-endpoints.com>
Tue, 24 Aug 2010 04:04:51 +0000 (00:04 -0400)
committerAsanka C. Herath <asanka@secure-endpoints.com>
Tue, 14 Sep 2010 12:03:33 +0000 (08:03 -0400)
commit7479c855a0362927055bc69ba14ccda90bc1de48
treeaa700a480d9f335cd498c899316b56832b1bdd04
parentd4fc674024762a0729bebec8d9e6c204cd034af2
Windows: Don't attempt to copy a string to a zero length buffer

It won't cause harm since strcpy_s() deals with zero length buffers,
but it invokes the invalid parameter handler, which can disrupt
execution on debug builds.
lib/roken/strlcpy.c