Fixed an open() vulnerability.