summaryrefslogtreecommitdiffstats
path: root/tester/covoar/Target_lm32.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tester/covoar/Target_lm32.cc')
-rw-r--r--tester/covoar/Target_lm32.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/tester/covoar/Target_lm32.cc b/tester/covoar/Target_lm32.cc
index 18e7191..7babbd2 100644
--- a/tester/covoar/Target_lm32.cc
+++ b/tester/covoar/Target_lm32.cc
@@ -30,11 +30,11 @@ namespace Target {
}
bool Target_lm32::isNopLine(
- const char* const line,
- int& size
+ const std::string& line,
+ int& size
)
{
- if (!strcmp( &line[strlen(line)-3], "nop")) {
+ if ( line.substr( line.length() - 3 ) == "nop" ) {
size = 4;
return true;
}