fixed a bug of not checking the return value of wcrtomb properly in qse_wcrtomb().
fixed a bug of passing a wrong buffer to qse_wcrtomb() in qse_wcsntombsn(). enhanced qse_tio_writembsn() and qse_tio_writewcsn()
This commit is contained in:
@ -33,7 +33,7 @@ qse_word_t qse_stx_hashstr (qse_stx_t* stx, const qse_char_t* str)
|
||||
return h;
|
||||
}
|
||||
|
||||
qse_word_t qse_stx_hashstrx (
|
||||
qse_word_t qse_stx_hashstrn (
|
||||
qse_stx_t* stx, const qse_char_t* str, qse_word_t len)
|
||||
{
|
||||
return qse_stx_hashbytes (stx, str, len * QSE_SIZEOF(*str));
|
||||
|
@ -20,7 +20,7 @@ qse_word_t qse_stx_hashstr (
|
||||
const qse_char_t* str
|
||||
);
|
||||
|
||||
qse_word_t qse_stx_hashstrx (
|
||||
qse_word_t qse_stx_hashstrn (
|
||||
qse_stx_t* stx,
|
||||
const qse_char_t* str,
|
||||
qse_word_t len
|
||||
|
Reference in New Issue
Block a user