]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
mtr v0.66 v0.66
authorRoger Wolff <r.e.wolff@bitwizard.nl>
Sun, 12 Dec 2004 00:00:00 +0000 (00:00 +0000)
committerTravis Cross <tc@traviscross.com>
Sun, 3 Feb 2013 20:45:38 +0000 (20:45 +0000)
 - 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

NEWS
curses.c
mtr.c
net.h

diff --git a/NEWS b/NEWS
index 862ab15320eb68cccfc6b2a11eb81e5e8050a774..5a2cf85d30368d379492aa43789d98b4e2967a60 100644 (file)
--- 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 
index 943670dbd66a5d0bcfa618578e44b3def940177e..414f5f20d75bee5604ff32a51aaf783071fa8739 100644 (file)
--- 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 867a2ba699169d1f5116f3f65ffbf74e45eaf601..fc52824d6510b58c5b1b997f9df0645cd296ae6a 100644 (file)
--- 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 621b06a88d29f031dfb59e82d6343cb447bb940b..3042f3788ca3ae00a36864a41c43924ad9ed43a4 100644 (file)
--- 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[];