summaryrefslogtreecommitdiffstats
path: root/tester/covoar/Explanations.cc
diff options
context:
space:
mode:
authorAlex White <alex.white@oarcorp.com>2021-06-24 22:35:31 -0500
committerJoel Sherrill <joel@rtems.org>2021-06-28 15:31:05 -0500
commitb1ad7e2f6e787ae50deed323b66091b8f99c6cfa (patch)
treec7aa352bef3de103ff3c3b530364407a7807e875 /tester/covoar/Explanations.cc
parentcovoar/Explanations.cc: Handle newline at end of file (diff)
downloadrtems-tools-b1ad7e2f6e787ae50deed323b66091b8f99c6cfa.tar.bz2
covoar/Explanations.cc: Remove unnecessary newline strip
This corrects an issue where the starting line numbers of explanations had their last digit removed. This was caused by code left over for handling C file IO where the newline was included in the buffer.
Diffstat (limited to 'tester/covoar/Explanations.cc')
-rw-r--r--tester/covoar/Explanations.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/tester/covoar/Explanations.cc b/tester/covoar/Explanations.cc
index 9b4c1f6..681ffd6 100644
--- a/tester/covoar/Explanations.cc
+++ b/tester/covoar/Explanations.cc
@@ -55,7 +55,6 @@ namespace Coverage {
if (explain.fail()) {
return;
}
- inputBuffer[ strlen(inputBuffer) - 1] = '\0';
line++;
} while ( inputBuffer[0] == '\0' );
@@ -80,7 +79,6 @@ namespace Coverage {
<< "out of sync at the classification";
throw rld::error( what, "Explanations::load" );
}
- inputBuffer[ strlen(inputBuffer) - 1] = '\0';
e.classification = inputBuffer;
line++;