SupSuper/OpenXcom — Issue #52: Paths are handled unsafely
Author: scarabeusiv
Created: 2011-11-05 21:07:17+00:00
State: open

The path handling currently is just two strings joining without any safeguards.

I spent 20 minutes figuring out why the app does not find its files and it was because i was not passing the path with trailing / which resulted into:

/usr/share/openxcomBLABLALBA/BLA.DAT instead of /usr/share/openxcom/BLABLALBA/BLA.DAT

My go would be with Boost::Filesystem, but I don't know if you guys want to use boost so some safeguards might be required there to ensure that the dir always ends with that slash.