test std.cfg: Improved testing for strcat() and wcscat().

This commit is contained in:
orbitcowboy 2018-05-25 08:36:47 +02:00
parent ca449a7f27
commit d7c8c46c10
2 changed files with 17 additions and 3 deletions

View File

@ -5389,7 +5389,7 @@ HFONT CreateFont(
<define name="RPC_C_AUTHN_LEVEL_CALL" value="3"/>
<define name="RPC_C_AUTHN_LEVEL_PKT" value="4"/>
<define name="RPC_C_AUTHN_LEVEL_PKT_INTEGRITY" value="5"/>
<define name="RPC_C_AUTHN_LEVEL_PKT_PRIVACY" value="6"/>
<define name="RPC_C_AUTHN_LEVEL_PKT_PRIVACY" value="6"/>
<define name="RPC_C_AUTHN_NONE" value="0"/>
<define name="RPC_C_AUTHN_DCE_PRIVATE" value="1"/>
<define name="RPC_C_AUTHN_DCE_PUBLIC" value="2"/>

View File

@ -2840,20 +2840,34 @@ void uninitvar_setvbuf(void)
(void)setvbuf(stream,buf,mode,size);
}
void uninitvar_strcat(void)
void uninitvar_strcat(char *dest, const char * const source)
{
char *deststr;
char *srcstr;
// cppcheck-suppress uninitvar
(void)strcat(deststr,srcstr);
// cppcheck-suppress uninitvar
(void)strcat(dest,srcstr);
// cppcheck-suppress uninitvar
(void)strcat(deststr,source);
// no warning shall be shown for
(void)strcat(dest,source);
}
void uninitvar_wcscat(void)
void uninitvar_wcscat(wchar_t *dest, const wchar_t * const source)
{
wchar_t *deststr;
wchar_t *srcstr;
// cppcheck-suppress uninitvar
(void)wcscat(deststr,srcstr);
// cppcheck-suppress uninitvar
(void)wcscat(dest,srcstr);
// cppcheck-suppress uninitvar
(void)wcscat(deststr,source);
// no warning shall be shown for
(void)wcscat(dest,source);
}
void uninitvar_wcrtomb(void)