-Werror,-Wdeprecated-declarations (sprintf, macOS 13 SDK): xmlsecurity

Change-Id: I58b01510fd41256660f703a3b62901fe286ffb93
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142337
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Stephan Bergmann
2022-11-05 16:04:41 +01:00
parent a28f89581c
commit 1b2fa783af

View File

@ -44,7 +44,9 @@ OUString XSecController::createId()
int length = 3;
for (sal_uInt8 i : aSeq)
{
SAL_WNODEPRECATED_DECLARATIONS_PUSH // sprintf (macOS 13 SDK)
length += sprintf(str+length, "%04x", i);
SAL_WNODEPRECATED_DECLARATIONS_POP
}
return OUString::createFromAscii(str);