]> git.rm.cloudns.org Git - xonotic/netradiant.git/commit
q3map2: add safe string copy functions
authorBen Noordhuis <info@bnoordhuis.nl>
Sat, 17 Mar 2012 23:34:31 +0000 (00:34 +0100)
committerBen Noordhuis <info@bnoordhuis.nl>
Sun, 18 Mar 2012 01:17:09 +0000 (02:17 +0100)
commitc2be26a9bdb2ec7ae7c817fd84885fa2a85521fb
treecc07d01831e7544bfc147897d7c78723a07c5012
parent997811d430794eb9f3fedbb18838a1832a5efd0f
q3map2: add safe string copy functions

* Q_strncpyz()
* Q_strncat()
* Q_strcat()

Guard against buffer overruns, always zero terminate the result.
tools/quake3/q3map2/main.c
tools/quake3/q3map2/q3map2.h