make mktemp match the historic behavior, and update functions that use it
authorRich Felker <dalias@aerifal.cx>
Sat, 19 Feb 2011 14:40:07 +0000 (09:40 -0500)
committerRich Felker <dalias@aerifal.cx>
Sat, 19 Feb 2011 14:40:07 +0000 (09:40 -0500)
commit69ecbd0f3188be97f91cc0d6415836d23e88f7fc
tree0d74e8a311a2ec1a8d0be9fa0f09ac09004a448f
parent2e6239dd064d201c6e1b0f589bae9ff27949d2eb
make mktemp match the historic behavior, and update functions that use it

the historic mktemp is supposed to blank the template string on
failure, rather than returning 0. just zero the first character so
that mkstemp and mkdtemp can still retry with O(1) space requirement.
src/temp/mkdtemp.c
src/temp/mkstemp.c
src/temp/mktemp.c