André Hentschel wrote:
You don't need additional strlen. You already have a length from snprintf (that's returned but not assigned to anything).
Vitaliy.
André Hentschel wrote:
You still have a problem here. You moving 1 byte too many. Remember, memmove is not a string function and doesn't care about '\0' characters.
Vitaliy.