fix linefeed on end of MSN

This commit is contained in:
Karsten Keil 2000-06-08 10:04:24 +00:00
parent a9d6c60e10
commit fffc34be37
1 changed files with 11 additions and 0 deletions

View File

@ -162,6 +162,17 @@ int eft_get_x25route(struct sockaddr_x25 * x25addr,
fprintf(stderr,
"eft_get_x25route: could not determine own msn\n");
return 1;
} else {
char *m = msn;
while(*m) {
if ((*m < '0') || (*m >'9')) {
*m = 0;
break;
}
m++;
}
if (!strlen(msn))
strcpy(msn, "0");
}
/*