We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c403609 commit a29523dCopy full SHA for a29523d
ompi/mca/btl/usnic/btl_usnic_stats.c
@@ -121,6 +121,11 @@ void opal_btl_usnic_print_stats(
121
122
module->stats.num_crc_errors);
123
124
+ // Shouldn't happen, but just in case the string ever grows long
125
+ // enough to someday potentially get truncated by snprintf, ensure
126
+ // that the string is terminated.
127
+ str[sizeof(str) - 1] = '\0';
128
+
129
/* If our PML calls were 0, then show send and receive window
130
extents instead */
131
if (module->stats.pml_module_sends +
0 commit comments