C++: Fix qhelp formatting.

This commit is contained in:
Geoffrey White
2024-05-02 17:26:24 +01:00
parent 8a261b7e7a
commit ecbf7aef18

View File

@@ -13,15 +13,16 @@ not the source buffer.</p>
</recommendation>
<example>
<p>In the following examples, the size of the source buffer is incorrectly used as a parameter to <code>strncpy</code>:</p>
<example><sample src="StrncpyFlippedArgsBad.cpp" />
<sample src="StrncpyFlippedArgsBad.cpp" />
<p>The corrected version uses the size of the destination buffer, or a variable containing the size of the destination buffer as the size parameter to <code>strncpy</code>:</p>
<example><sample src="StrncpyFlippedArgsGood.cpp" />
<sample src="StrncpyFlippedArgsGood.cpp" />
</example>
<references>
<li>cplusplus.com: <a href="http://www.cplusplus.com/reference/clibrary/cstring/strncpy/">strncpy</a>.</li>