fixed a bug in qse_mbs_ncpy() and qse_wcs_ncpy().

enhanced qse_mbs_ncat() and qse_wcs_ncat() to allocate a buffer if zero-length string is passed in when the current capacity is 0
This commit is contained in:
2011-07-07 10:44:10 +00:00
parent 4d55ebbcce
commit afbbdd03ea
9 changed files with 120 additions and 51 deletions

View File

@ -2,6 +2,7 @@
* $Id$
*/
#if 0
#include "par.h"
#include "../cmn/mem.h"
@ -1698,3 +1699,4 @@ static int __close_input (qse_stc_t* stc)
return 0;
}
#endif