diff --git a/lib/checkother.cpp b/lib/checkother.cpp index be8b8d310..cc9e7b2be 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -3734,5 +3734,5 @@ void CheckOther::sizeofsizeof() void CheckOther::sizeofsizeofError(const Token *tok) { reportError(tok, Severity::style, - "sizeofsizeof", "Suspicios code 'sizeof sizeof ..', most likely there should only be one sizeof. The current code is equivalent with 'sizeof(size_t)'."); + "sizeofsizeof", "Suspicious code 'sizeof sizeof ..', most likely there should only be one sizeof. The current code is equivalent to 'sizeof(size_t)'."); } diff --git a/test/testother.cpp b/test/testother.cpp index 6ef9eca19..23ed8dae6 100644 --- a/test/testother.cpp +++ b/test/testother.cpp @@ -2632,7 +2632,7 @@ private: "{\n" " int i = sizeof sizeof char;\n" "}\n"); - ASSERT_EQUALS("[test.cpp:3]: (style) Suspicios code 'sizeof sizeof ..', most likely there should only be one sizeof. The current code is equivalent with 'sizeof(size_t)'.\n", errout.str()); + ASSERT_EQUALS("[test.cpp:3]: (style) Suspicious code 'sizeof sizeof ..', most likely there should only be one sizeof. The current code is equivalent to 'sizeof(size_t)'.\n", errout.str()); } void emptyCatchBlock()