For `dir.size == MAXPATHL` we still have a buffer overrun in the following `string[dir.size] = NUL`.