[rtems-tools commit] covoar/Explanations.cc: Remove unnecessary newline strip
Joel Sherrill
joel at rtems.org
Mon Jun 28 20:31:22 UTC 2021
Module: rtems-tools
Branch: master
Commit: b1ad7e2f6e787ae50deed323b66091b8f99c6cfa
Changeset: http://git.rtems.org/rtems-tools/commit/?id=b1ad7e2f6e787ae50deed323b66091b8f99c6cfa
Author: Alex White <alex.white at oarcorp.com>
Date: Thu Jun 24 22:35:31 2021 -0500
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.
---
tester/covoar/Explanations.cc | 2 --
1 file changed, 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++;
More information about the vc
mailing list