port: fix -Wdeprecated-declarations warning about sprintf on macOS clang 14
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 7 Mar 2023 19:16:44 +0000 (14:16 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 16 Mar 2023 15:02:58 +0000 (11:02 -0400)
commit51a7b11ec8712e8888af09cc3d3df3bb848f70e9
tree6ab3e5acb37c9b3ed0113b157fc7ee09ac582bb2
parent40b2a4a793c81221a28f822d07135069456ea021
port: fix -Wdeprecated-declarations warning about sprintf on macOS clang 14

Remove uses of sprintf to fix this warning:

    warning: 'sprintf' is deprecated: This function is provided for
    compatibility reasons only.  Due to security concerns inherent in the
    design of sprintf(3), it is highly recommended that you use snprintf(3)
    instead. [-Wdeprecated-declarations]

Change-Id: Ifff3746c1cc4e51a8cf4c08ccd845c887d76c6be
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/string-utils/string-utils.cpp
src/common/utils.cpp
This page took 0.025269 seconds and 4 git commands to generate.