You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafodion.apache.org by db...@apache.org on 2018/03/01 21:08:03 UTC

[5/6] trafodion git commit: Code review fix. Missed one :-(

Code review fix. Missed one :-(


Project: http://git-wip-us.apache.org/repos/asf/trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafodion/commit/87739b81
Tree: http://git-wip-us.apache.org/repos/asf/trafodion/tree/87739b81
Diff: http://git-wip-us.apache.org/repos/asf/trafodion/diff/87739b81

Branch: refs/heads/master
Commit: 87739b81a022ae6005d810aadac7fc3c6071cf1d
Parents: 717f9c3
Author: Zalo Correa <za...@esgyn.com>
Authored: Wed Feb 28 16:17:26 2018 -0800
Committer: Zalo Correa <za...@esgyn.com>
Committed: Wed Feb 28 16:17:26 2018 -0800

----------------------------------------------------------------------
 core/sqf/src/trafconf/clusterconf.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafodion/blob/87739b81/core/sqf/src/trafconf/clusterconf.cpp
----------------------------------------------------------------------
diff --git a/core/sqf/src/trafconf/clusterconf.cpp b/core/sqf/src/trafconf/clusterconf.cpp
index 039b87d..907919d 100644
--- a/core/sqf/src/trafconf/clusterconf.cpp
+++ b/core/sqf/src/trafconf/clusterconf.cpp
@@ -381,7 +381,7 @@ bool CClusterConfig::LoadNodeConfig( void )
         if (i == 0)
         {
             configMaster_ = pnodeConfigInfo.pnid;
-            strcpy (configMasterName_ ,pnodeConfigInfo.nodename);
+            strncpy( configMasterName_ , pnodeConfigInfo.nodename, sizeof(configMasterName_) );
         }
         AddNodeConfiguration( pnodeConfigInfo, lnodeConfigInfo );
     }