1 diff -up net-tools-1.60/lib/rose.c.debug-fix net-tools-1.60/lib/rose.c
2 --- net-tools-1.60/lib/rose.c.debug-fix 2000-03-05 12:26:03.000000000 +0100
3 +++ net-tools-1.60/lib/rose.c 2009-09-01 13:02:20.000000000 +0200
4 @@ -86,7 +86,7 @@ static int ROSE_input(int type, char *bu
5 if (strlen(bufp) != 10) {
6 strcpy(ROSE_errmsg, _("Node address must be ten digits"));
8 - fprintf(stderr, "rose_input(%s): %s !\n", ROSE_errmsg, orig);
9 + fprintf(stderr, "rose_input(%s): %s !\n", bufp, ROSE_errmsg);
13 @@ -99,7 +99,7 @@ static int ROSE_input(int type, char *bu
17 - fprintf(stderr, "rose_input(%s): ", orig);
18 + fprintf(stderr, "rose_input(%s): ", bufp);
19 for (i = 0; i < sizeof(rose_address); i++)
20 fprintf(stderr, "%02X ", sap->sa_data[i] & 0377);
21 fprintf(stderr, "\n");
22 diff -up net-tools-1.60/lib/x25.c.debug-fix net-tools-1.60/lib/x25.c
23 --- net-tools-1.60/lib/x25.c.debug-fix 2000-05-20 20:53:25.000000000 +0200
24 +++ net-tools-1.60/lib/x25.c 2009-09-01 13:06:05.000000000 +0200
25 @@ -81,6 +81,7 @@ X25_input(int type, char *bufp, struct s
28 unsigned int sigdigits;
31 sap->sa_family = x25_aftype.af;
32 ptr = ((struct sockaddr_x25 *)sap)->sx25_addr.x25_addr;
33 @@ -90,7 +91,7 @@ X25_input(int type, char *bufp, struct s
34 if (strlen(bufp)>18) {
35 strcpy(X25_errmsg, _("Address can't exceed eighteen digits with sigdigits"));
37 - fprintf(stderr, "x25_input(%s): %s !\n", X25_errmsg, orig);
38 + fprintf(stderr, "x25_input(%s): %s !\n", bufp, X25_errmsg);
42 @@ -108,7 +109,7 @@ X25_input(int type, char *bufp, struct s
44 strcpy(X25_errmsg, _("Invalid address"));
46 - fprintf(stderr, "x25_input(%s): %s !\n", X25_errmsg, orig);
47 + fprintf(stderr, "x25_input(%s): %s !\n", bufp, X25_errmsg);
51 @@ -118,8 +119,8 @@ X25_input(int type, char *bufp, struct s
55 - fprintf(stderr, "x25_input(%s): ", orig);
56 - for (i = 0; i < sizeof(x25_address); i++)
57 + fprintf(stderr, "x25_input(%s): ", bufp);
58 + for (i = 0; i < sizeof(sap->sa_data); i++)
59 fprintf(stderr, "%02X ", sap->sa_data[i] & 0377);
60 fprintf(stderr, "\n");