diff --git a/xxd.go b/xxd.go index 6d8e730..d6c0952 100644 --- a/xxd.go +++ b/xxd.go @@ -18,7 +18,9 @@ func main() { panic(err) } defer f.Close() - if err := XXD(f, os.Stdout); err != nil { + out := bufio.NewWriter(os.Stdout) + defer out.Flush() + if err := XXD(f, out); err != nil { panic(err) } }