make sure fgets() gets the sizeof the buffer, and not a hard-coded
authoraland <aland>
Tue, 31 Aug 1999 14:28:48 +0000 (14:28 +0000)
committeraland <aland>
Tue, 31 Aug 1999 14:28:48 +0000 (14:28 +0000)
size.

src/main/radclient.c

index 0fdf696..d487adb 100644 (file)
@@ -45,7 +45,7 @@ VALUE_PAIR *readvp(FILE *fp)
 
        list = NULL;
 
-       while (!error && fgets(buf, 128, fp) != NULL) {
+       while (!error && fgets(buf, sizeof(buf), fp) != NULL) {
 
                p = buf;
                do {