projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
port: fix -Wdeprecated-declarations warning about sprintf on macOS clang 14
[lttng-tools.git]
/
src
/
common
/
utils.cpp
diff --git
a/src/common/utils.cpp
b/src/common/utils.cpp
index 831926aab16c48656082113a984386d530be3203..0f6e0362f2d32f6c557ffede0341ed0d829b2ff7 100644
(file)
--- a/
src/common/utils.cpp
+++ b/
src/common/utils.cpp
@@
-1032,7
+1032,7
@@
int utils_show_help(int section, const char *page_name, const char *help_msg)
}
/* Section integer -> section string */
- ret = s
printf(section_string
, "%d", section);
+ ret = s
nprintf(section_string, sizeof(section_string)
, "%d", section);
LTTNG_ASSERT(ret > 0 && ret < 8);
/*
This page took
0.024547 seconds
and
4
git commands to generate.