projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* The size constant "256" which shows up everywhere as a buffer size has now
[citadel.git]
/
citadel
/
netproc.c
diff --git
a/citadel/netproc.c
b/citadel/netproc.c
index b614d92ac580c7a1e1a9424b0eb48f8330d79f90..6a887768145540ce268a6f116a74c37ad3238203 100644
(file)
--- a/
citadel/netproc.c
+++ b/
citadel/netproc.c
@@
-408,7
+408,7
@@
void load_filterlist(void)
fp = fopen("./network/filterlist", "r");
if (fp == NULL)
return;
- while (fgets(sbuf,
256
, fp) != NULL) {
+ while (fgets(sbuf,
sizeof sbuf
, fp) != NULL) {
if (sbuf[0] != '#') {
sbuf[strlen(sbuf) - 1] = 0;
fbuf = (struct filterlist *)