Changeset fde36fe2


Ignore:
Timestamp:
Mar 13, 2010 2:59:54 PM (10 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
939cdb0
Parents:
40e820c
Message:

flip backwards arraycopy args

Location:
apps/i2ptunnel/java/src/net/i2p/i2ptunnel/socks
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/socks/SOCKSUDPUnwrapper.java

    r40e820c rfde36fe2  
    5151        int headerlen = h.getBytes().length;
    5252        byte unwrapped[] = new byte[data.length - headerlen];
    53         System.arraycopy(unwrapped, 0, data, headerlen, unwrapped.length);
     53        System.arraycopy(data, headerlen, unwrapped, 0, unwrapped.length);
    5454        this.sink.send(dest, unwrapped);
    5555    }
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/socks/SOCKSUDPWrapper.java

    r40e820c rfde36fe2  
    4040        byte[] header = h.getBytes();
    4141        byte wrapped[] = new byte[header.length + data.length];
    42         System.arraycopy(wrapped, 0, header, 0, header.length);
    43         System.arraycopy(wrapped, header.length, data, 0, data.length);
     42        System.arraycopy(header, 0, wrapped, 0, header.length);
     43        System.arraycopy(data, 0, wrapped, header.length, data.length);
    4444        this.sink.send(from, wrapped);
    4545    }
Note: See TracChangeset for help on using the changeset viewer.