From c307668fefdcb1dc8a9f63aea988687c4da7f739 Mon Sep 17 00:00:00 2001 From: Alex Lin Date: Tue, 26 Apr 2016 15:57:33 -0500 Subject: [PATCH] All command line arguments that start with "-d" being matched by input processor. Changed the string compare to match the whole argument to "-d". refs #230 --- trick_source/sim_services/InputProcessor/InputProcessor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trick_source/sim_services/InputProcessor/InputProcessor.cpp b/trick_source/sim_services/InputProcessor/InputProcessor.cpp index a81b6eb4..73cb3f36 100644 --- a/trick_source/sim_services/InputProcessor/InputProcessor.cpp +++ b/trick_source/sim_services/InputProcessor/InputProcessor.cpp @@ -42,7 +42,7 @@ int Trick::InputProcessor::process_sim_args() { * If there are more than 2 calling arguments */ - if (!strncmp("-d", argv[i], (size_t) 2)) { + if (!strcmp("-d", argv[i])) { /* Set the 'input verification only' and echo input flags */ verify_input = 1 ; }