int status;
int n;
char address[16];
- char port[8];
+ char port[11];
RADCLIENT *cl;
/*
return WEXITSTATUS(status);
}
- /*
- * Child - exec checklogin with the right parameters.
- */
- for (n = 256; n >= 3; n--)
- close(n);
+ closefrom(3);
/*
* We don't close fd's 0, 1, and 2. If we're in debugging mode,
*/
ip_ntoa(address, nasaddr);
- sprintf(port, "%u", portnum);
+ snprintf(port, 11, "%u", portnum);
#ifdef __EMX__
/* OS/2 can't directly execute scripts then we call the command