Fix two mingw32-only buffer overflows. Note that triggering