From cc22eefeaea6a222927f8e38e834c3931dbf20b8 Mon Sep 17 00:00:00 2001 From: Lew Rossman Date: Thu, 18 Apr 2019 07:11:17 -0400 Subject: [PATCH] Fixed compilation errors --- src/report.c | 2 +- tests/test_net_builder.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/report.c b/src/report.c index c35d73f..0e7336d 100644 --- a/src/report.c +++ b/src/report.c @@ -237,7 +237,7 @@ void writesummary(Project *pr) Parser *parser = &pr->parser; Times *time = &pr->times; - char s[MAXFNAME + 1]; + char s[MAXLINE + 1]; int i; int nres = 0; diff --git a/tests/test_net_builder.cpp b/tests/test_net_builder.cpp index 698d4c3..5163ea3 100644 --- a/tests/test_net_builder.cpp +++ b/tests/test_net_builder.cpp @@ -304,6 +304,7 @@ BOOST_FIXTURE_TEST_CASE(test_save_net2, FixtureInitClose) //char id[EN_MAXID+1]; double p1_1, p2_1; // p1_2, p2_2; double q1_1, q2_1; // q1_2, q2_2; + int ind; // Build a network error = EN_addnode(ph, (char *)"N1", EN_JUNCTION, &ind);