1
0
mirror of https://github.com/golang/go synced 2024-11-18 15:44:41 -07:00

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
This commit is contained in:
Russ Cox 2013-01-31 22:57:30 -08:00
parent 7fc64a2a1d
commit 25d1fc9389

View File

@ -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);