- Adds tracing during playback

- stop snprintf-ing from one string into another, which is undefined
behavior
This commit is contained in:
Isaac Visintainer 2019-02-04 14:37:25 -08:00
parent 4146ce3400
commit 367b7ead62
2 changed files with 5 additions and 3 deletions

View File

@ -316,11 +316,11 @@ u3t_trace_open()
}
c3_c * wen_c = u3r_string(u3A->wen);
snprintf(fil_c, 2048, "%s/%s.json", fil_c, wen_c);
c3_c lif_c[2048];
snprintf(lif_c, 2048, "%s/%s.json", fil_c, wen_c);
free(wen_c);
u3_Host.tra_u.fil_u = fopen(fil_c, "w");
u3_Host.tra_u.fil_u = fopen(lif_c, "w");
u3_Host.tra_u.nid_w = (int)getpid();
fprintf(u3_Host.tra_u.fil_u, "[ ");

View File

@ -234,7 +234,9 @@ _sist_suck(u3_noun ovo, u3_noun gon)
static void
_sist_sing(u3_noun ovo)
{
u3t_event_trace("Running", 'b');
u3_noun gon = u3m_soft(0, u3v_poke, u3k(ovo));
u3t_event_trace("Running", 'e');
{
u3_noun hed, tal;