Closed fluks closed 8 years ago
If the src argument to utf8cpy is "", the empty string, '\0' is assigned twice to dst, once in the loop and the second time after it.
src
utf8cpy
""
'\0'
dst
I believe this is not the intended behavior of this function.
Good find thanks!
If the
src
argument toutf8cpy
is""
, the empty string,'\0'
is assigned twice todst
, once in the loop and the second time after it.I believe this is not the intended behavior of this function.