forked from enlightenment/efl
parent
d3655ee501
commit
9da847b538
|
@ -63,7 +63,7 @@ eina_unicode_strncpy(Eina_Unicode *dest, const Eina_Unicode *source, size_t n)
|
||||||
{
|
{
|
||||||
Eina_Unicode *ret = dest;
|
Eina_Unicode *ret = dest;
|
||||||
|
|
||||||
for (n = 0; *source && n; n--)
|
for ( ; n && *source ; n--)
|
||||||
*dest++ = *source++;
|
*dest++ = *source++;
|
||||||
for (; n; n--)
|
for (; n; n--)
|
||||||
*dest++ = 0;
|
*dest++ = 0;
|
||||||
|
|
Loading…
Reference in New Issue