Unified · Split
| @@ -382,9 +382,13 @@ readcolors(void *x) · 381 unmodified lines | |||
| 382 | Color *c, *new; | 382 | Color *c, *new; |
| 383 | Biobuf *b; | 383 | Biobuf *b; |
| 384 | char *s; | 384 | char *s; |
| 385 | char tmp[64]; | ||
| 385 | int i, n; | 386 | int i, n; |
| 386 | 387 | ||
| 387 | b = x; | 388 | b = x; |
| 389 | n = sprint(tmp, "readcolors "); | ||
| 390 | fd2path(Bfildes(b), tmp+n, sizeof(tmp)-n); | ||
| 391 | threadsetname(tmp); | ||
| 388 | new = nil; | 392 | new = nil; |
| 389 | for (i = 1; (s = Brdstr(b, '\n', 1)) != nil; i++) { | 393 | for (i = 1; (s = Brdstr(b, '\n', 1)) != nil; i++) { |
| 390 | if (new == nil) | 394 | if (new == nil) |