Skip to content
Snippets Groups Projects
Commit 4a324669 authored by Scott Snyder's avatar Scott Snyder Committed by Graeme Stewart
Browse files

'gcc7 warning: potential snprintf truncation.' (TrigConfigSvc-01-01-76)

	* Tagging TrigConfigSvc-01-01-76.
	* src/HLTConfigSvc.cxx: gcc7 warning: potential snprintf
	truncation.
parent dddcb717
No related branches found
No related tags found
No related merge requests found
......@@ -406,7 +406,7 @@ namespace {
inline void fillPrescaleHist(TH2I* h, uint lb, int psk) {
if (h==0) return;
// Use alpha-numeric bin labels to ensure correct gathering
char buf_psk[6], buf_lb[6];
char buf_psk[12], buf_lb[12];
snprintf(buf_psk, sizeof(buf_psk), "%d", psk); // faster than stringstream
snprintf(buf_lb, sizeof(buf_lb), "%03d", lb);
// Save number of bins and perform a locked Fill
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment