stack smash detected in add_recording_vars_for_frame

Changing size of char[256] to char[512] temporarily.  Will come back
to change all sprintf calls to use stringstreams.

refs #211
This commit is contained in:
Alex Lin 2016-04-01 09:02:46 -05:00
parent 617efa3a52
commit b1a69f2490

View File

@ -93,7 +93,7 @@ void Trick::FrameLog::add_recording_vars_for_jobs() {
unsigned int ii , dot ;
REF2 * new_ref ;
char job_name[256];
char job_name[512];
std::vector<Trick::JobData *> all_jobs_vector ;
exec_get_all_jobs_vector(all_jobs_vector) ;
@ -195,7 +195,7 @@ void Trick::FrameLog::add_recording_vars_for_jobs() {
void Trick::FrameLog::add_recording_vars_for_frame() {
REF2 * new_ref ;
char job_name[256];
char job_name[512];
int ii ;
drg_frame->add_variable(rt_sim_object_name + std::string(".rt_sync.frame_sched_time")) ;