Index: src/0dev.org/commands/pdc/main.go ================================================================== --- src/0dev.org/commands/pdc/main.go +++ src/0dev.org/commands/pdc/main.go @@ -55,14 +55,14 @@ // I/O is buffered for better performance func decompress(output io.Writer, input io.Reader) int { var ( err error buffer *bufio.Writer = bufio.NewWriter(output) - decompressor io.Reader = predictor.Decompressor(input) + decompressor io.Reader = predictor.Decompressor(bufio.NewReader(input)) ) - _, err = io.Copy(buffer, bufio.NewReader(decompressor)) + _, err = io.Copy(buffer, decompressor) if err != nil { fmt.Fprintln(os.Stderr, "Error while decompressing.\n", err) return 1 }