fixed wrong length type in hawk_copy_uchars_to_ucstr() and hawk_copy_bchars_to_bcstr()
This commit is contained in:
parent
610910ad9e
commit
0c46c2c145
@ -540,14 +540,14 @@ HAWK_EXPORT hawk_oow_t hawk_copy_bcstr (
|
|||||||
|
|
||||||
HAWK_EXPORT hawk_oow_t hawk_copy_uchars_to_ucstr (
|
HAWK_EXPORT hawk_oow_t hawk_copy_uchars_to_ucstr (
|
||||||
hawk_uch_t* dst,
|
hawk_uch_t* dst,
|
||||||
hawk_uch_t dlen,
|
hawk_oow_t dlen,
|
||||||
const hawk_uch_t* src,
|
const hawk_uch_t* src,
|
||||||
hawk_oow_t slen
|
hawk_oow_t slen
|
||||||
);
|
);
|
||||||
|
|
||||||
HAWK_EXPORT hawk_oow_t hawk_copy_bchars_to_bcstr (
|
HAWK_EXPORT hawk_oow_t hawk_copy_bchars_to_bcstr (
|
||||||
hawk_bch_t* dst,
|
hawk_bch_t* dst,
|
||||||
hawk_bch_t dlen,
|
hawk_oow_t dlen,
|
||||||
const hawk_bch_t* src,
|
const hawk_bch_t* src,
|
||||||
hawk_oow_t slen
|
hawk_oow_t slen
|
||||||
);
|
);
|
||||||
|
@ -339,7 +339,7 @@ void hawk_copy_uchars_to_bchars (hawk_bch_t* dst, const hawk_uch_t* src, hawk_oo
|
|||||||
for (i = 0; i < len; i++) dst[i] = src[i];
|
for (i = 0; i < len; i++) dst[i] = src[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
hawk_oow_t hawk_copy_uchars_to_ucstr (hawk_uch_t* dst, hawk_uch_t dlen, const hawk_uch_t* src, hawk_oow_t slen)
|
hawk_oow_t hawk_copy_uchars_to_ucstr (hawk_uch_t* dst, hawk_oow_t dlen, const hawk_uch_t* src, hawk_oow_t slen)
|
||||||
{
|
{
|
||||||
hawk_oow_t i;
|
hawk_oow_t i;
|
||||||
if (dlen <= 0) return 0;
|
if (dlen <= 0) return 0;
|
||||||
@ -349,7 +349,7 @@ hawk_oow_t hawk_copy_uchars_to_ucstr (hawk_uch_t* dst, hawk_uch_t dlen, const ha
|
|||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
hawk_oow_t hawk_copy_bchars_to_bcstr (hawk_bch_t* dst, hawk_bch_t dlen, const hawk_bch_t* src, hawk_oow_t slen)
|
hawk_oow_t hawk_copy_bchars_to_bcstr (hawk_bch_t* dst, hawk_oow_t dlen, const hawk_bch_t* src, hawk_oow_t slen)
|
||||||
{
|
{
|
||||||
hawk_oow_t i;
|
hawk_oow_t i;
|
||||||
if (dlen <= 0) return 0;
|
if (dlen <= 0) return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user