--- trealla-2.82.28/src/bif_posix.c.orig +++ trealla-2.82.28/src/bif_posix.c @@ -204,7 +204,7 @@ time_t when = get_smallint(p1); char tmpbuf[256]; cell tmp; - make_cstring(&tmp, ctime_r(&when, tmpbuf)); + make_cstring(&tmp, ctime_r(&when, tmpbuf, 256)); bool ok = unify(q, p2, p2_ctx, &tmp, q->st.curr_frame); unshare_cell(&tmp); return ok;