From: Roger Wolff Date: Sun, 12 Dec 2004 00:00:00 +0000 (+0000) Subject: mtr v0.66 X-Git-Tag: v0.66^0 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1f8386e1fa9a8d4fa2c8463b17b462700e32f084;p=thirdparty%2Fmtr.git mtr v0.66 - Through the Debian bugtracking system a bug report and fix was sent my way, that deals with stupid optmization trying to save some 768 bytes of memory, sacrificing "it works" on a different architecture... (default char signedness) source: ftp://ftp.bitwizard.nl/mtr/mtr-0.66.tar.gz --- diff --git a/NEWS b/NEWS index 862ab15..5a2cf85 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,8 @@ WHAT'S NEW? + v0.66 Through the Debian bugtracking system a bug report and + fix was sent my way, that deals with stupid optmization + trying to save some 768 bytes of memory, sacrificing "it + works" on a different architecture... (default char signedness) v0.65 Dancer Vesperman noted that mtr no longer traces past a section of non-responding hosts. Apparently I added a line in net.c that didn't make sense in mtr-0.56. I diff --git a/curses.c b/curses.c index 943670d..414f5f2 100644 --- a/curses.c +++ b/curses.c @@ -90,7 +90,7 @@ int mtr_curses_keyaction() { int c = getch(); int i=0; - char buf[MAXFLD]; + char buf[MAXFLD+1]; if(c == 'q') return ActionQuit; diff --git a/mtr.c b/mtr.c index 867a2ba..fc52824 100644 --- a/mtr.c +++ b/mtr.c @@ -73,7 +73,7 @@ int maxTTL = 30; /* inline with traceroute */ /* default display field(defined by key in net.h) and order */ unsigned char fld_active[2*MAXFLD] = "LS NABWV"; -char fld_index[256]; +int fld_index[256]; char available_options[MAXFLD]; diff --git a/net.h b/net.h index 621b06a..3042f37 100644 --- a/net.h +++ b/net.h @@ -100,7 +100,7 @@ extern struct fields data_fields[MAXFLD]; /* keys: the value in the array is the index number in data_fields[] */ -extern char fld_index[]; +extern int fld_index[]; extern unsigned char fld_active[]; extern char available_options[];