summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-09-07 15:54:36 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-09-08 09:13:40 +0200
commitba5670b262b46016011fc7b4ca33c90cd5a1fd6e (patch)
treea01204a3c1b95749f7861ac8ee7a31a0c31f9607 /sal
parentbc8131987bb59f3e3467385c53be52fc7cfa0908 (diff)
-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: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/w32/security.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/sal/osl/w32/security.cxx b/sal/osl/w32/security.cxx
index c70ad92f2931..2082301d2156 100644
--- a/sal/osl/w32/security.cxx
+++ b/sal/osl/w32/security.cxx
@@ -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);