Reacted on compiler warning on Solaris.
This commit is contained in:
parent
20cc592765
commit
1539ff120e
@ -1193,7 +1193,7 @@ int subst_symlink_dest_comp(Ecma119Image *target, uint32_t idx,
|
|||||||
wpt += *comp_start - *dest;
|
wpt += *comp_start - *dest;
|
||||||
memcpy(wpt, new_name, new_len);
|
memcpy(wpt, new_name, new_len);
|
||||||
wpt += new_len;
|
wpt += new_len;
|
||||||
if (*comp_end - *dest < *dest_len)
|
if ((unsigned int) (*comp_end - *dest) < *dest_len)
|
||||||
memcpy(wpt, *comp_end, *dest_len - (*comp_end - *dest));
|
memcpy(wpt, *comp_end, *dest_len - (*comp_end - *dest));
|
||||||
wpt += *dest_len - (*comp_end - *dest);
|
wpt += *dest_len - (*comp_end - *dest);
|
||||||
*wpt = 0;
|
*wpt = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user