Index: libnet/lib/core/fixaddr.c =================================================================== RCS file: /var/cvsroot/redstone/redstone/libnet/lib/core/fixaddr.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- libnet/lib/core/fixaddr.c 28 Dec 2002 00:11:34 -0000 1.1 +++ libnet/lib/core/fixaddr.c 14 Jan 2003 03:26:22 -0000 1.2 @@ -23,10 +23,13 @@ /* copy the address part the target address (sans port) */ colon = strrchr (p, ':'); if (colon) { - while (p+i < colon) - dest[i++] = p[i]; + while (p+i < colon) { + dest[i] = p[i]; + i++; + } - dest[i++] = ':'; + dest[i] = ':'; + i++; } /* add the port number of the remote channel */