From 8705ea9fc5db9edf0231f8e682b040effbf05a1e Mon Sep 17 00:00:00 2001
From: Axel Kohlmeyer <akohlmey@gmail.com>
Date: Tue, 8 May 2018 08:49:05 -0400
Subject: [PATCH] replace pointless use of strncat() emulating strcat() with
 plain strcat()

---
 src/USER-DPD/fix_rx.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/USER-DPD/fix_rx.cpp b/src/USER-DPD/fix_rx.cpp
index c370f8abe6..be78989bb5 100644
--- a/src/USER-DPD/fix_rx.cpp
+++ b/src/USER-DPD/fix_rx.cpp
@@ -361,9 +361,9 @@ void FixRX::post_constructor()
   for(int ii=0; ii<nspecies; ii++){
     strcpy(str1,"d_");
     strcpy(str2,"d_");
-    strncat(str1,tmpspecies[ii],strlen(tmpspecies[ii]));
-    strncat(str2,tmpspecies[ii],strlen(tmpspecies[ii]));
-    strncat(str2,"Old",3);
+    strcat(str1,tmpspecies[ii]);
+    strcat(str2,tmpspecies[ii]);
+    strcat(str2,"Old");
     newarg[ii+3] = new char[strlen(str1)+1];
     newarg2[ii+3] = new char[strlen(str2)+1];
     strcpy(newarg[ii+3],str1);
-- 
GitLab