fix error cases in mkostemps core
authorRich Felker <dalias@aerifal.cx>
Thu, 21 Feb 2013 03:58:46 +0000 (22:58 -0500)
committerRich Felker <dalias@aerifal.cx>
Thu, 21 Feb 2013 03:58:46 +0000 (22:58 -0500)
commit8d2f8064aa3d2cc7380c447dfbd8929543f36f51
treecb24d2ba08c2eed9f8dd8f38c8c9d265d34ae9eb
parent3b00675bf51aef47705d8845de24dec8c6063078
fix error cases in mkostemps core

1. wrong return value and missing errno for negative suffix len
2. failure to catch suffix len > strlen
3. remove unwanted clearing of input string in invalid case
src/temp/mkostemps.c