mirror of
https://github.com/urbit/shrub.git
synced 2025-01-02 09:32:29 +03:00
- Adds tracing during playback
- stop snprintf-ing from one string into another, which is undefined behavior
This commit is contained in:
parent
4146ce3400
commit
367b7ead62
@ -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, "[ ");
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user