Re: Use memmove instead of memcpy for overlapping areas
- From
Junio C Hamano <junkio@cox.net>
- Date
- Oct 31, 2006, 01:37 UTC
- Message-ID
- <7vpsc9s1t9.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <20061030222615.1e38908b.froese@gmx.de>
Edgar Toernig <froese@gmx.de> writes:
> There may be more - this is just the result of a quick eye-grep > for memcpy(x, x+i).
Thanks. Sign-off?
Among many false hit,
$ git grep 'memcpy.*( *\(.*\),.*\1.*+'
gives this one:
builtin-unpack-objects.c: memcpy(buffer, buffer + offset, len);