mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-10 08:10:49 +00:00
Avoid coverity warning by using memmove rather than strcpy
This commit is contained in:
parent
b47faf74bc
commit
e94025271b
1 changed files with 3 additions and 3 deletions
|
@ -1557,7 +1557,7 @@ load_iface(const char* from)
|
|||
}
|
||||
if (ptr != buf)
|
||||
{
|
||||
strcpy(buf, ptr);
|
||||
memmove(buf, ptr, strlen(ptr) + 1);
|
||||
}
|
||||
/*
|
||||
* Strip comments.
|
||||
|
@ -1629,7 +1629,7 @@ load_iface(const char* from)
|
|||
}
|
||||
if (ptr != buf)
|
||||
{
|
||||
strcpy(buf, ptr);
|
||||
memmove(buf, ptr, strlen(ptr) + 1);
|
||||
}
|
||||
/*
|
||||
* Strip comments.
|
||||
|
@ -4968,7 +4968,7 @@ printf(
|
|||
}
|
||||
if (ptr != buf)
|
||||
{
|
||||
strcpy(buf, ptr);
|
||||
memmove(buf, ptr, strlen(ptr) + 1);
|
||||
}
|
||||
/*
|
||||
* Strip comments.
|
||||
|
|
Loading…
Reference in a new issue