fixed minor assertion flaw in lib/cmn/mbwc-str.c
This commit is contained in:
parent
ebc9f5d29c
commit
3737a28cd3
@ -426,8 +426,10 @@ int qse_wcstombswithcmgr (
|
||||
break; /* illegal character */
|
||||
}
|
||||
|
||||
/* it assumes that mbs is large enough to hold a character */
|
||||
QSE_ASSERT (n <= QSE_COUNTOF(mbs));
|
||||
/* it assumes that mbsbuf is large enough to hold a character.
|
||||
* since mbsbuf is of the QSE_MBLEN_MAX size, the return value
|
||||
* must not exceed the size of mbsbuf. */
|
||||
QSE_ASSERT (n <= QSE_COUNTOF(mbsbuf));
|
||||
|
||||
p++; mlen += n;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user