diff options
| author | forsyth <forsyth@vitanuova.com> | 2009-07-17 17:31:32 +0100 |
|---|---|---|
| committer | forsyth <forsyth@vitanuova.com> | 2009-07-17 17:31:32 +0100 |
| commit | 3293d1240801e46dd9cc27f6ba1133bc2b1d22e1 (patch) | |
| tree | 84602d17a931f149cdb1f3b90dfd16aca0a27d44 /appl/lib/ip.b | |
| parent | a3b744b4ba351c8c7bb51ccc13c60594e073b321 (diff) | |
20090717-1731
Diffstat (limited to 'appl/lib/ip.b')
| -rw-r--r-- | appl/lib/ip.b | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/appl/lib/ip.b b/appl/lib/ip.b index 49dfdb0a..a3f807ad 100644 --- a/appl/lib/ip.b +++ b/appl/lib/ip.b @@ -66,7 +66,7 @@ init() IPaddr.newv6(a: array of byte): IPaddr { - b := array[len a] of byte; + b := array[IPaddrlen] of byte; b[0:] = a[0:IPaddrlen]; return IPaddr(b); } @@ -83,7 +83,7 @@ IPaddr.copy(ip: self IPaddr): IPaddr { if(ip.a == nil) return noaddr.copy(); - a := array[len ip.a] of byte; + a := array[IPaddrlen] of byte; a[0:] = ip.a; return IPaddr(a); } |
