summaryrefslogtreecommitdiff
path: root/emfio/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-11-05 15:56:54 +0100
committerStephan Bergmann <sbergman@redhat.com>2022-11-05 19:20:30 +0100
commit1c216f5291e09ccca430551f5bc2677def3842cb (patch)
tree130057fdc3659f523e77bc55ff7e210d10f6d489 /emfio/source
parentedc271017fc823d600fce1b94bf65cc1ce4777fe (diff)
-Werror,-Wdeprecated-declarations (sprintf, macOS 13 SDK): emfio
Change-Id: Id69f3639cb957570c4165150b288397c6e06727e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142324 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'emfio/source')
-rw-r--r--emfio/source/reader/emfreader.cxx3
-rw-r--r--emfio/source/reader/wmfreader.cxx3
2 files changed, 4 insertions, 2 deletions
diff --git a/emfio/source/reader/emfreader.cxx b/emfio/source/reader/emfreader.cxx
index 37978478bdbe..7baa7c8ed949 100644
--- a/emfio/source/reader/emfreader.cxx
+++ b/emfio/source/reader/emfreader.cxx
@@ -23,6 +23,7 @@
#include <osl/diagnose.h>
#include <vcl/dibtools.hxx>
#include <o3tl/safeint.hxx>
+#include <o3tl/sprintf.hxx>
#include <tools/stream.hxx>
#include <memory>
#include <unotools/configmgr.hxx>
@@ -306,7 +307,7 @@ record_type_name(sal_uInt32 nRecType)
// Yes, return a pointer to a static buffer. This is a very
// local debugging output function, so no big deal.
static char buffer[11];
- sprintf(buffer, "0x%08" SAL_PRIxUINT32, nRecType);
+ o3tl::sprintf(buffer, "0x%08" SAL_PRIxUINT32, nRecType);
return buffer;
}
#endif
diff --git a/emfio/source/reader/wmfreader.cxx b/emfio/source/reader/wmfreader.cxx
index 7b4485a3edd9..92431e06d42b 100644
--- a/emfio/source/reader/wmfreader.cxx
+++ b/emfio/source/reader/wmfreader.cxx
@@ -24,6 +24,7 @@
#include <memory>
#include <optional>
#include <o3tl/safeint.hxx>
+#include <o3tl/sprintf.hxx>
#include <o3tl/unit_conversion.hxx>
#include <rtl/crc.h>
#include <rtl/tencinfo.h>
@@ -237,7 +238,7 @@ namespace
// Yes, return a pointer to a static buffer. This is a very
// local debugging output function, so no big deal.
static char buffer[11];
- sprintf(buffer, "0x%08" SAL_PRIxUINT32, sal_uInt32(nRecType));
+ o3tl::sprintf(buffer, "0x%08" SAL_PRIxUINT32, sal_uInt32(nRecType));
return buffer;
}
#endif