]> git.rm.cloudns.org Git - xonotic/netradiant.git/commit
q3map2: getpwent() result may not be persistent
authorBen Noordhuis <info@bnoordhuis.nl>
Sat, 17 Mar 2012 23:26:28 +0000 (00:26 +0100)
committerBen Noordhuis <info@bnoordhuis.nl>
Sun, 18 Mar 2012 01:17:09 +0000 (02:17 +0100)
commitd7e9dab03d4791de2c2e31e401e51941fd68f294
treea31ff81951e1cdae0888909594bd4fdd48eee822
parentc2be26a9bdb2ec7ae7c817fd84885fa2a85521fb
q3map2: getpwent() result may not be persistent

Use getpwuid_r() instead and store the path in a static buffer.
tools/quake3/q3map2/path_init.c