From 9dced5cb2021b91b446e5d245ee7a6f79f0bdb11 Mon Sep 17 00:00:00 2001 From: Earl Thomas Higgins <38668914+Earlthenut@users.noreply.github.com> Date: Thu, 30 Dec 2021 14:26:44 -0600 Subject: [PATCH] Fixing spelling in comments StringTests.cpp --- StringTests.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/StringTests.cpp b/StringTests.cpp index d372a1c..da47f9a 100644 --- a/StringTests.cpp +++ b/StringTests.cpp @@ -5,7 +5,7 @@ // Provided under the GPL Gnu Public License 2.0 // // This code is intended to accompany the "Safe C String" video. It demonstrates -// how to replace older usafe string functions that lack bounds and buffer checks +// how to replace older unsafe string functions that lack bounds and buffer checks // with more modern replacements intended for a hostile world. // // String Function Replacement Cheat Sheet @@ -69,7 +69,7 @@ int main(int argc, char * argv []) int length1 = strnlen_s(szLongString, sizeof szLongString); - // Quick test to confirm that passind null is ok + // Quick test to confirm that passing null is ok assert(0 == strnlen_s(nullptr, RSIZE_MAX)); @@ -207,7 +207,7 @@ void TestVarArgs(char * buffer, size_t cb, const char* format, ...) } // I don't normally do the Unicode dance anymore, but dealing with -// Microsoft proprietary stuff, I do it thierway, like so: +// Microsoft proprietary stuff, I do it their way, like so: void OurParameterValidationFailureHandler( const wchar_t * expression,