Commit 25d1fc93 authored by Russ Cox's avatar Russ Cox

cmd/dist: fix build

The Unix and Plan 9 readfile call breset(b) but Windows was not,
leaving dregs in the buffer.

TBR=golang-dev
CC=golang-dev
https://golang.org/cl/7229069
parent 7fc64a2a
......@@ -530,6 +530,7 @@ readfile(Buf *b, char *file)
HANDLE h;
Rune *r;
breset(b);
if(vflag > 2)
errprintf("read %s\n", file);
torune(&r, file);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment