--- /usr/ports/java/drexelsnmp/tmp/source/snmp/SNMPIPAddress.java	Thu Nov 25 02:45:26 2004
+++ /usr/ports/java/drexelsnmp/work/source/snmp/SNMPIPAddress.java	Fri Sep  1 11:20:59 2006
@@ -32,6 +32,7 @@
 
 
 import java.util.*;
+import java.lang.System;
 
 
 /** 
@@ -88,9 +89,10 @@
         
         tag = SNMPBERCodec.SNMPIPADDRESS;
         
-        if (enc.length == 4)
+        if (enc.length == 4 || enc.length == 8)
         {
-            data = enc;
+        data = new byte[4];
+	System.arraycopy(enc, 0, data, 0, 4);
         }
         else        // wrong size
         {
@@ -199,4 +201,4 @@
     
     
     
-}
\ No newline at end of file
+}
