Skip to content

Commit

Permalink
Fixed problem cmd.args
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonB committed May 2, 2015
1 parent 313b0a8 commit 33fc35c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wineshm.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func GetWineShm(shmname string, mode string) (uintptr, error) {

WineCmd[0] = winePath
args := []string{shmwrapper1Path, shmname, mode, shmwrapper2Path}
cmd := exec.Command(WineCmd[0], (append(WineCmd, args...))[0:]...)
cmd := exec.Command(WineCmd[0], (append(WineCmd, args...))[1:]...)

writeFile := os.NewFile(uintptr(fds[0]), "child-writes")
readFile := os.NewFile(uintptr(fds[1]), "parent-reads")
Expand Down

0 comments on commit 33fc35c

Please sign in to comment.