Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions draw/snarf_plan9.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
// error. No error is returned if there is no problem except for buf being too
// short.
func (d *Display) ReadSnarf(buf []byte) (int, int, error) {
sbuf, err := ioutil.ReadFile(d.mtpt + "/snarf")
sbuf, err := ioutil.ReadFile("/dev/snarf")
if err != nil {
return -1, -1, err
}
Expand All @@ -23,5 +23,5 @@ func (d *Display) ReadSnarf(buf []byte) (int, int, error) {

// WriteSnarf writes the data to the snarf buffer.
func (d *Display) WriteSnarf(data []byte) error {
return ioutil.WriteFile(d.mtpt+"/snarf", data, 0666)
return ioutil.WriteFile("/dev/snarf", data, 0666)
}