- (snmpv3.c): fix setup engineID buffer overflow found by Mike Baer.


git-svn-id: file:///home/hardaker/lib/sf-bkups/net-snmp-convert-svnrepo/trunk@3874 06827809-a52a-0410-b366-d66718629ded
diff --git a/snmplib/snmpv3.c b/snmplib/snmpv3.c
index 7793d94..c53701f 100644
--- a/snmplib/snmpv3.c
+++ b/snmplib/snmpv3.c
@@ -235,7 +235,7 @@
    */
   if (text) {
     bufp[4] = 4;
-    strcpy((char *)bufp+5,text);
+    memcpy((char *)bufp+5, text, strlen(text));
 
   } else {
     bufp[4] = 1;