From 12d5dd8aabeddc2511a62917b7b28293208f1c6e Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Tue, 15 May 2012 16:16:58 -0700 Subject: [PATCH] Fix --test. --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 249751576..ba23ff80d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -119,9 +119,9 @@ int main(int argc, char* argv[]) pvCmd.resize(iCmd); for (int i=0; i != iCmd; ++i) - pvCmd[i] = (char*) (vCmd[0].c_str()); + pvCmd[i] = (char*) (vCmd[i].c_str()); - iResult = unit_test_main(init_unit_test, iCmd, &pvCmd.front()); + iResult = unit_test_main(init_unit_test, iCmd, &pvCmd[0]); } else if (!vm.count("parameters")) {