INN commit: trunk/tests/lib (confparse-t.c)

INN Commit rra at isc.org
Sun Apr 3 13:22:10 UTC 2016


    Date: Sunday, April 3, 2016 @ 06:22:10
  Author: iulius
Revision: 9994

Fix the computation of sizeof(buf) for fgets()

Modified:
  trunk/tests/lib/confparse-t.c

---------------+
 confparse-t.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: confparse-t.c
===================================================================
--- confparse-t.c	2016-04-03 13:21:04 UTC (rev 9993)
+++ confparse-t.c	2016-04-03 13:22:10 UTC (rev 9994)
@@ -18,7 +18,7 @@
 static char *
 read_section(FILE *file)
 {
-    char buf[1024] = "";
+    char buf[1024];
     char *data = NULL;
     char *status;
 



More information about the inn-committers mailing list