testoptions: fixed buffer access out of bounds issue. The ctor of options requires an array of at least two elements, but.

This commit is contained in:
Martin Ettl 2013-10-29 01:48:30 +01:00
parent c529de6e07
commit 184db3900e
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ private:
void no_test_method() const { void no_test_method() const {
const char* argv[] = {"./test_runner"}; const char* argv[] = {"./test_runner", ""};
options args(sizeof argv / sizeof argv[0], argv); options args(sizeof argv / sizeof argv[0], argv);
ASSERT_EQUALS("", args.which_test()); ASSERT_EQUALS("", args.which_test());
} }