mmp / pbrt-v2

Source code for the version of pbrt described in the second edition of "Physically Based Rendering"
http://pbrt.org
989 stars 343 forks source link

Make a copy of a filename passed to DirectoryContaining() #18

Closed steelman closed 10 years ago

steelman commented 10 years ago

According to IEEE Std 1003.1, dirname() MAY modify the received value. http://pubs.opengroup.org/onlinepubs/009604599/functions/dirname.html