- StrBufCutAt(Buf, 0, "|"); /* trim all but the first thread ref */
- wc_printf("topref %s, ", ChrPtr(Buf));
- bp->refs = HashLittle(ChrPtr(Buf), StrLength(Buf));
+ StrBufExtract_token(r, Buf, 0, '|');
+ wc_printf("topref %s, ", ChrPtr(r));
+ bp->refs = HashLittle(ChrPtr(r), StrLength(r));