Allow checkrad to be called successfully with ports > 9999999 without
trashing memory.
Spotted and initial patch by Eddie Stassen
-FreeRADIUS 1.0.2 ; $Date$, urgency=medium
+FreeRADIUS 1.0.3 ; $Date$, urgency=medium
+ * Fix bug in calling checkrad script with NAS port > 9999999
+
+FreeRADIUS 1.0.2 ; Date: 2005/02/13 01:03:20, urgency=medium
* Novell eDirectoty support. Patch from Novell.
* localweb & Trapeze dictionary updates.
* EAP-SIM fixes.
int status;
int n;
char address[16];
- char port[8];
+ char port[11];
RADCLIENT *cl;
/*
*/
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