[2782875] Fix buffer overflow and other file path security issues.
Authored by: dholmes999 2009-04-30
Parent: [r301]
Child: [r303]