diff -ru tcptraceroute-1.3beta5/changelog tcptraceroute-1.3beta6/changelog --- tcptraceroute-1.3beta5/changelog Fri Dec 14 00:18:04 2001 +++ tcptraceroute-1.3beta6/changelog Sat Dec 15 21:22:27 2001 @@ -3,7 +3,7 @@ /* * Revision history: * - * Version 1.3beta5 (2001-12-14) + * Version 1.3beta6 (2001-12-15) * * probe() and capture() now use a new proberecord structure which * contains information about each probe in a modularized way. diff -ru tcptraceroute-1.3beta5/tcptraceroute.c tcptraceroute-1.3beta6/tcptraceroute.c --- tcptraceroute-1.3beta5/tcptraceroute.c Fri Dec 14 00:01:11 2001 +++ tcptraceroute-1.3beta6/tcptraceroute.c Sat Dec 15 21:33:01 2001 @@ -30,14 +30,17 @@ * Updates are available from http://michael.toren.net/code/tcptraceroute/ */ -#define VERSION "tcptraceroute 1.3beta5 (2001-12-14)" +#define VERSION "tcptraceroute 1.3beta6 (2001-12-15)" #define BANNER "Copyright (c) 2001, Michael C. Toren \n\ Updates are available from http://michael.toren.net/code/tcptraceroute/\n" /* * Revision history: * - * Version 1.3beta5 (2001-12-14) + * Version 1.3beta6 (2001-12-15) + * + * Fixes an off-by-one error in getinterfaces(), discovered by + * Kit Knox . * * probe() and capture() now use a new proberecord structure which * contains information about each probe in a modularized way. @@ -688,7 +691,7 @@ /* ... and fill it in */ p->addr = addr; - p->name = xrealloc(NULL, sizeof(ifr.ifr_name + 1)); + p->name = xrealloc(NULL, strlen(ifr.ifr_name) + 1); strcpy(p->name, ifr.ifr_name); debug("Discovered interface %s with address %s\n",