Files
wren/src
Bob Nystrom ad7318d101 fix: guard against null pointer when script path lacks directory separator
When a script path contains no '/' character, strrchr returns NULL, causing a crash in the subsequent malloc and memcpy calls. This change adds a NULL check before attempting to extract the root directory, leaving rootDirectory as an empty string when no separator is present.
2015-02-22 18:22:21 +00:00
..