Commit d0dc861b881e129ab9afb26cfe5df99187eeb53d

Vilmos Nebehaj 2014-03-21T14:38:11

Don't truncate hosts file path on Windows. Since evutil_snprintf() (actually evutil_vsnprintf() called by it) will make sure the buffer is null-terminated by placing a null byte at len_out - 1, we need to pass the full length of the buffer; otherwise the path will end in "\\host" instead of "\\hosts".