Skip to content

Commit

Permalink
Merge pull request #155 from art-daq/fix/BufferSizeForLargerRunNumbers
Browse files Browse the repository at this point in the history
GatewaySupervisor: increase buffer size to handle larger run numbers …
  • Loading branch information
rrivera747 committed Apr 16, 2024
2 parents 79cc848 + bc75caf commit 73fd9ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion otsdaq/GatewaySupervisor/GatewaySupervisor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4145,7 +4145,7 @@ void GatewaySupervisor::request(xgi::Input* in, xgi::Output* out)
xmlOut.addTextElementToData("transition_progress", "100");

// char tmp[20]; old size before adding db run number
char tmp[30];
char tmp[50]; // for a 6 digits run number from the DB, this needs to be at least 34
sprintf(tmp, "%lu", theStateMachine_.getTimeInState());
xmlOut.addTextElementToData("time_in_state", tmp);

Expand Down

0 comments on commit 73fd9ba

Please sign in to comment.