Skip to content
Snippets Groups Projects
Commit 16cae156 authored by Rene Brun's avatar Rene Brun
Browse files

use strlcpy

git-svn-id: http://root.cern.ch/svn/root/trunk@36265 27541ba8-7e3a-0410-8455-c3a389f83636
parent 4ff11c58
No related branches found
No related tags found
No related merge requests found
...@@ -138,7 +138,7 @@ LDAPMod *TLDAPAttribute::GetMod(Int_t op) ...@@ -138,7 +138,7 @@ LDAPMod *TLDAPAttribute::GetMod(Int_t op)
} }
values[iCount] = 0; values[iCount] = 0;
strcpy(type, GetName()); strlcpy(type, GetName(),strlen(GetName())+1);
tmpMod->mod_values = values; tmpMod->mod_values = values;
tmpMod->mod_type = type; tmpMod->mod_type = type;
tmpMod->mod_op = op; tmpMod->mod_op = op;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment