]> git.proxmox.com Git - libgit2.git/commit
config: fix check for environment string expansion
authorCarlos Martín Nieto <carlos@cmartin.tk>
Fri, 30 Sep 2011 13:43:58 +0000 (15:43 +0200)
committerCarlos Martín Nieto <carlos@cmartin.tk>
Fri, 30 Sep 2011 13:46:49 +0000 (15:46 +0200)
commit358a15fd65cdc56ddc02b3ea261851f20c7ac618
tree73813db6e2bde7f4e04dde0136a763f8f50e7ee2
parent550c9f31bb782f11483f146dd69b1ec7d2e530a3
config: fix check for environment string expansion

If ExpandEnvironmentStringsW is successful, it returns the amount of
characters written, including the NUL terminator.

Thanks to Emeric for reading the MSDN documentation correctly.

Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
src/config.c