[iortcw] 350/497: All: Use memmove instead of strcpy in Info_RemoveKey_Big (like in Info_RemoveKey)

2017-09-08 Thread Simon McVittie
This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to annotated tag 1.42d
in repository iortcw.

commit 3998e13aa7ccc2d5287e53971e0fa68827865895
Author: Donny 
Date:   Fri Jun 19 06:25:32 2015 -0400

All: Use memmove instead of strcpy in Info_RemoveKey_Big (like in 
Info_RemoveKey)
---
 MP/code/qcommon/q_shared.c | 2 +-
 SP/code/qcommon/q_shared.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/MP/code/qcommon/q_shared.c b/MP/code/qcommon/q_shared.c
index 5b96357..aa53348 100644
--- a/MP/code/qcommon/q_shared.c
+++ b/MP/code/qcommon/q_shared.c
@@ -1386,7 +1386,7 @@ void Info_RemoveKey_Big( char *s, const char *key ) {
*o = 0;
 
if ( !strcmp( key, pkey ) ) {
-   strcpy( start, s );  // remove this part
+   memmove(start, s, strlen(s) + 1); // remove this part
return;
}
 
diff --git a/SP/code/qcommon/q_shared.c b/SP/code/qcommon/q_shared.c
index 2c6a455..2aefbf9 100644
--- a/SP/code/qcommon/q_shared.c
+++ b/SP/code/qcommon/q_shared.c
@@ -1481,7 +1481,7 @@ void Info_RemoveKey_Big( char *s, const char *key ) {
*o = 0;
 
if ( !strcmp( key, pkey ) ) {
-   strcpy( start, s );  // remove this part
+   memmove(start, s, strlen(s) + 1); // remove this part
return;
}
 

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-games/iortcw.git

___
Pkg-games-commits mailing list
Pkg-games-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits


[iortcw] 350/497: All: Use memmove instead of strcpy in Info_RemoveKey_Big (like in Info_RemoveKey)

2016-09-21 Thread Simon McVittie
This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to annotated tag 1.42d
in repository iortcw.

commit 3998e13aa7ccc2d5287e53971e0fa68827865895
Author: Donny 
Date:   Fri Jun 19 06:25:32 2015 -0400

All: Use memmove instead of strcpy in Info_RemoveKey_Big (like in 
Info_RemoveKey)
---
 MP/code/qcommon/q_shared.c | 2 +-
 SP/code/qcommon/q_shared.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/MP/code/qcommon/q_shared.c b/MP/code/qcommon/q_shared.c
index 5b96357..aa53348 100644
--- a/MP/code/qcommon/q_shared.c
+++ b/MP/code/qcommon/q_shared.c
@@ -1386,7 +1386,7 @@ void Info_RemoveKey_Big( char *s, const char *key ) {
*o = 0;
 
if ( !strcmp( key, pkey ) ) {
-   strcpy( start, s );  // remove this part
+   memmove(start, s, strlen(s) + 1); // remove this part
return;
}
 
diff --git a/SP/code/qcommon/q_shared.c b/SP/code/qcommon/q_shared.c
index 2c6a455..2aefbf9 100644
--- a/SP/code/qcommon/q_shared.c
+++ b/SP/code/qcommon/q_shared.c
@@ -1481,7 +1481,7 @@ void Info_RemoveKey_Big( char *s, const char *key ) {
*o = 0;
 
if ( !strcmp( key, pkey ) ) {
-   strcpy( start, s );  // remove this part
+   memmove(start, s, strlen(s) + 1); // remove this part
return;
}
 

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-games/iortcw.git

___
Pkg-games-commits mailing list
Pkg-games-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits