mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Use memmove instead of memcpy for potentially overlapping moves.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@19730 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
389df425ed
commit
c79f943077
3 changed files with 22 additions and 17 deletions
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,8 @@
|
|||
2004-07-13 Andrew Ruder <aeruder@ksu.edu>
|
||||
|
||||
* Source/NSMessagePort.m, Source/NSSocketPort.m: Use memmove instead
|
||||
of memcpy for potentially overlapping moves.
|
||||
|
||||
2004-07-10 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Tools/cvtenc.m: Use uppercase 'U' rather than 'u' in unicode
|
||||
|
@ -15,9 +20,9 @@
|
|||
|
||||
2004-07-05 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/Unicode.m: GSToUnicode() be strict about converting ASCII
|
||||
to unicode.
|
||||
GetDefEncoding() don't override default (latin1) encoding to be
|
||||
* Source/Additions/Unicode.m: GSToUnicode() be strict about
|
||||
converting ASCII to unicode.
|
||||
(GetDefEncoding): Don't override default (latin1) encoding to be
|
||||
ascii if we only have the return value of nl_langinfo() to go on.
|
||||
|
||||
2004-07-04 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
|
|
@ -693,7 +693,7 @@ static Class runLoopClass;
|
|||
rLength -= rWant;
|
||||
if (rLength > 0)
|
||||
{
|
||||
memcpy(bytes, bytes + rWant, rLength);
|
||||
memmove(bytes, bytes + rWant, rLength);
|
||||
}
|
||||
rWant = sizeof(GSPortItemHeader);
|
||||
d = [mutableDataClass new];
|
||||
|
@ -722,7 +722,7 @@ static Class runLoopClass;
|
|||
rLength -= rWant;
|
||||
if (rLength > 0)
|
||||
{
|
||||
memcpy(bytes, bytes + rWant, rLength);
|
||||
memmove(bytes, bytes + rWant, rLength);
|
||||
}
|
||||
rWant = l;
|
||||
}
|
||||
|
@ -745,7 +745,7 @@ static Class runLoopClass;
|
|||
rLength -= rWant;
|
||||
if (rLength > 0)
|
||||
{
|
||||
memcpy(bytes, bytes + rWant, rLength);
|
||||
memmove(bytes, bytes + rWant, rLength);
|
||||
}
|
||||
rWant = l;
|
||||
}
|
||||
|
@ -793,7 +793,7 @@ static Class runLoopClass;
|
|||
rLength -= rWant;
|
||||
if (rLength > 0)
|
||||
{
|
||||
memcpy(bytes, bytes + rWant, rLength);
|
||||
memmove(bytes, bytes + rWant, rLength);
|
||||
}
|
||||
rWant = sizeof(GSPortItemHeader);
|
||||
if (nItems == 1)
|
||||
|
@ -809,7 +809,7 @@ static Class runLoopClass;
|
|||
rLength -= rWant;
|
||||
if (rLength > 0)
|
||||
{
|
||||
memcpy(bytes, bytes + rWant, rLength);
|
||||
memmove(bytes, bytes + rWant, rLength);
|
||||
}
|
||||
rWant = sizeof(GSPortItemHeader);
|
||||
}
|
||||
|
@ -828,7 +828,7 @@ static Class runLoopClass;
|
|||
rLength -= rWant;
|
||||
if (rLength > 0)
|
||||
{
|
||||
memcpy(bytes, bytes + rWant, rLength);
|
||||
memmove(bytes, bytes + rWant, rLength);
|
||||
}
|
||||
rWant = sizeof(GSPortItemHeader);
|
||||
if (nItems == [rItems count])
|
||||
|
@ -857,7 +857,7 @@ static Class runLoopClass;
|
|||
rLength -= rWant;
|
||||
if (rLength > 0)
|
||||
{
|
||||
memcpy(bytes, bytes + rWant, rLength);
|
||||
memmove(bytes, bytes + rWant, rLength);
|
||||
}
|
||||
rWant = sizeof(GSPortItemHeader);
|
||||
|
||||
|
|
|
@ -806,7 +806,7 @@ static Class runLoopClass;
|
|||
rLength -= rWant;
|
||||
if (rLength > 0)
|
||||
{
|
||||
memcpy(bytes, bytes + rWant, rLength);
|
||||
memmove(bytes, bytes + rWant, rLength);
|
||||
}
|
||||
rWant = sizeof(GSPortItemHeader);
|
||||
d = [mutableDataClass new];
|
||||
|
@ -835,7 +835,7 @@ static Class runLoopClass;
|
|||
rLength -= rWant;
|
||||
if (rLength > 0)
|
||||
{
|
||||
memcpy(bytes, bytes + rWant, rLength);
|
||||
memmove(bytes, bytes + rWant, rLength);
|
||||
}
|
||||
rWant = l;
|
||||
}
|
||||
|
@ -858,7 +858,7 @@ static Class runLoopClass;
|
|||
rLength -= rWant;
|
||||
if (rLength > 0)
|
||||
{
|
||||
memcpy(bytes, bytes + rWant, rLength);
|
||||
memmove(bytes, bytes + rWant, rLength);
|
||||
}
|
||||
rWant = l;
|
||||
}
|
||||
|
@ -906,7 +906,7 @@ static Class runLoopClass;
|
|||
rLength -= rWant;
|
||||
if (rLength > 0)
|
||||
{
|
||||
memcpy(bytes, bytes + rWant, rLength);
|
||||
memmove(bytes, bytes + rWant, rLength);
|
||||
}
|
||||
rWant = sizeof(GSPortItemHeader);
|
||||
if (nItems == 1)
|
||||
|
@ -922,7 +922,7 @@ static Class runLoopClass;
|
|||
rLength -= rWant;
|
||||
if (rLength > 0)
|
||||
{
|
||||
memcpy(bytes, bytes + rWant, rLength);
|
||||
memmove(bytes, bytes + rWant, rLength);
|
||||
}
|
||||
rWant = sizeof(GSPortItemHeader);
|
||||
}
|
||||
|
@ -941,7 +941,7 @@ static Class runLoopClass;
|
|||
rLength -= rWant;
|
||||
if (rLength > 0)
|
||||
{
|
||||
memcpy(bytes, bytes + rWant, rLength);
|
||||
memmove(bytes, bytes + rWant, rLength);
|
||||
}
|
||||
rWant = sizeof(GSPortItemHeader);
|
||||
if (nItems == [rItems count])
|
||||
|
@ -970,7 +970,7 @@ static Class runLoopClass;
|
|||
rLength -= rWant;
|
||||
if (rLength > 0)
|
||||
{
|
||||
memcpy(bytes, bytes + rWant, rLength);
|
||||
memmove(bytes, bytes + rWant, rLength);
|
||||
}
|
||||
rWant = sizeof(GSPortItemHeader);
|
||||
|
||||
|
|
Loading…
Reference in a new issue