projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a92f706
)
make sure fgets() gets the sizeof the buffer, and not a hard-coded
author
aland
<aland>
Tue, 31 Aug 1999 14:28:48 +0000
(14:28 +0000)
committer
aland
<aland>
Tue, 31 Aug 1999 14:28:48 +0000
(14:28 +0000)
size.
src/main/radclient.c
patch
|
blob
|
history
diff --git
a/src/main/radclient.c
b/src/main/radclient.c
index
0fdf696
..
d487adb
100644
(file)
--- a/
src/main/radclient.c
+++ b/
src/main/radclient.c
@@
-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 {