openbsd-ports/net/radiusd-lucent/patches/patch-radius_src_vports_c
2003-06-29 04:48:38 +00:00

13 lines
508 B
Plaintext

$OpenBSD: patch-radius_src_vports_c,v 1.1 2003/06/29 04:48:39 avsm Exp $
--- radius/src/vports.c.orig Fri Jun 20 14:05:16 2003
+++ radius/src/vports.c Fri Jun 20 14:05:29 2003
@@ -93,7 +93,7 @@ vports_init()
DEBUG("Found VPORTS, reading in list\n");
while(fgets(s, 256, f1) != NULL) {
s[strlen(s)-1] = '\0'; /* Strip off CR */
- sscanf(s, "%16s %16s", cid, s2);
+ sscanf(s, "%15s %15s", cid, s2);
cid[15]='\0';
s2[15]='\0';
max = atoi(s2);