diff -ru5p sam/error.c sam-host/error.c --- sam/error.c Fri Jun 27 23:03:54 2003 +++ sam-host/error.c Wed Jul 2 01:02:07 2003 @@ -125,8 +120,9 @@ termwrite(char *s) if(cmd) loginsert(cmd, cmdpt, p->s, p->n); else Strinsert(&cmdstr, p, cmdstr.n); cmdptadv += p->n; - free(p); + freetmpstr(p); }else Write(2, s, strlen(s)); } diff -ru5p sam/mesg.c sam-host/mesg.c --- sam/mesg.c Thu Jul 3 12:00:08 2003 +++ sam-host/mesg.c Thu Jul 3 14:11:27 2003 @@ -392,12 +400,15 @@ inmesg(Tmesg type) journaln(0, p0); journaln(0, p1); setgenstr(f, p0, p1); for(l = 0; l