diff options
author | Alex White <alex.white@oarcorp.com> | 2021-06-24 22:35:31 -0500 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2021-06-28 15:31:05 -0500 |
commit | b1ad7e2f6e787ae50deed323b66091b8f99c6cfa (patch) | |
tree | c7aa352bef3de103ff3c3b530364407a7807e875 /tester/covoar/Explanations.cc | |
parent | covoar/Explanations.cc: Handle newline at end of file (diff) | |
download | rtems-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.cc | 2 |
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++; |