14f06a4
diff -up net-tools-1.60/lib/rose.c.debug-fix net-tools-1.60/lib/rose.c
14f06a4
--- net-tools-1.60/lib/rose.c.debug-fix	2000-03-05 12:26:03.000000000 +0100
14f06a4
+++ net-tools-1.60/lib/rose.c	2009-09-01 13:02:20.000000000 +0200
14f06a4
@@ -86,7 +86,7 @@ static int ROSE_input(int type, char *bu
14f06a4
     if (strlen(bufp) != 10) {
14f06a4
 	strcpy(ROSE_errmsg, _("Node address must be ten digits"));
14f06a4
 #ifdef DEBUG
14f06a4
-	fprintf(stderr, "rose_input(%s): %s !\n", ROSE_errmsg, orig);
14f06a4
+	fprintf(stderr, "rose_input(%s): %s !\n", bufp, ROSE_errmsg);
14f06a4
 #endif
14f06a4
 	errno = EINVAL;
14f06a4
 	return (-1);
14f06a4
@@ -99,7 +99,7 @@ static int ROSE_input(int type, char *bu
14f06a4
 
14f06a4
     /* All done. */
14f06a4
 #ifdef DEBUG
14f06a4
-    fprintf(stderr, "rose_input(%s): ", orig);
14f06a4
+    fprintf(stderr, "rose_input(%s): ", bufp);
14f06a4
     for (i = 0; i < sizeof(rose_address); i++)
14f06a4
 	fprintf(stderr, "%02X ", sap->sa_data[i] & 0377);
14f06a4
     fprintf(stderr, "\n");
14f06a4
diff -up net-tools-1.60/lib/x25.c.debug-fix net-tools-1.60/lib/x25.c
14f06a4
--- net-tools-1.60/lib/x25.c.debug-fix	2000-05-20 20:53:25.000000000 +0200
14f06a4
+++ net-tools-1.60/lib/x25.c	2009-09-01 13:06:05.000000000 +0200
14f06a4
@@ -81,6 +81,7 @@ X25_input(int type, char *bufp, struct s
14f06a4
   unsigned char *ptr;
14f06a4
   char *p;
14f06a4
   unsigned int sigdigits;
14f06a4
+  int i;
14f06a4
 
14f06a4
   sap->sa_family = x25_aftype.af;
14f06a4
   ptr = ((struct sockaddr_x25 *)sap)->sx25_addr.x25_addr;
14f06a4
@@ -90,7 +91,7 @@ X25_input(int type, char *bufp, struct s
14f06a4
   if (strlen(bufp)>18) {
14f06a4
         strcpy(X25_errmsg, _("Address can't exceed eighteen digits with sigdigits"));
14f06a4
 #ifdef DEBUG
14f06a4
-        fprintf(stderr, "x25_input(%s): %s !\n", X25_errmsg, orig);
14f06a4
+        fprintf(stderr, "x25_input(%s): %s !\n", bufp, X25_errmsg);
14f06a4
 #endif
14f06a4
         errno = EINVAL;
14f06a4
         return(-1);
14f06a4
@@ -108,7 +109,7 @@ X25_input(int type, char *bufp, struct s
14f06a4
 	*p = '/';
14f06a4
         strcpy(X25_errmsg, _("Invalid address"));
14f06a4
 #ifdef DEBUG
14f06a4
-        fprintf(stderr, "x25_input(%s): %s !\n", X25_errmsg, orig);
14f06a4
+        fprintf(stderr, "x25_input(%s): %s !\n", bufp, X25_errmsg);
14f06a4
 #endif
14f06a4
         errno = EINVAL;
14f06a4
         return(-1);
14f06a4
@@ -118,8 +119,8 @@ X25_input(int type, char *bufp, struct s
14f06a4
 
14f06a4
   /* All done. */
14f06a4
 #ifdef DEBUG
14f06a4
-  fprintf(stderr, "x25_input(%s): ", orig);
14f06a4
-  for (i = 0; i < sizeof(x25_address); i++)
14f06a4
+  fprintf(stderr, "x25_input(%s): ", bufp);
14f06a4
+  for (i = 0; i < sizeof(sap->sa_data); i++)
14f06a4
 	fprintf(stderr, "%02X ", sap->sa_data[i] & 0377);
14f06a4
   fprintf(stderr, "\n");
14f06a4
 #endif