Commit 94d02ca
src: fix warning for potential snprintf truncation
gcc 8+ recognizes that space has not been left for the pid and that the
return value of snprintf() isn't checked. Leave a little space for the
pid to prevent `-Wformat-truncation`.
PR-URL: #24810
Reviewed-By: Richard Lau <riclau@uk.ibm.com>1 parent c3dda00 commit 94d02caCopy full SHA for 94d02ca
File tree
Expand file treeCollapse file tree
1 file changed
+2
-1
lines changedOpen diff view settings
Filter options
- src
Expand file treeCollapse file tree
1 file changed
+2
-1
lines changedOpen diff view settings
Collapse file
+2-1Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
116 | 116 | |
117 | 117 | |
118 | 118 | |
119 | | - |
| 119 | + |
| 120 | + |
120 | 121 | |
121 | 122 | |
122 | 123 | |
|
0 commit comments