Kaydet (Commit) ba5670b2 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

-Werror,-Wformat (clang-cl)

...%d vs. DWORD aka unsigned long, but no need for sprintf anyway

Change-Id: I7e97ada40abf7785a0678c76c76b547d6571f497
Reviewed-on: https://gerrit.libreoffice.org/60160
Tested-by: Jenkins
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst bc813198
......@@ -318,10 +318,9 @@ sal_Bool SAL_CALL osl_getUserIdent(oslSecurity Security, rtl_uString **strIdent)
else
{
const DWORD dwError = GetLastError();
char sBuf[100];
sprintf(sBuf, "ConvertSidToStringSidW failed. GetLastError returned: %d",
dwError);
SAL_WARN("sal.osl", sBuf);
SAL_WARN(
"sal.osl",
"ConvertSidToStringSidW failed. GetLastError returned: " << dwError);
}
free(pInfoBuffer);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment