]> Cypherpunks repositories - gostls13.git/commit
os: Plan 9: allocate space for a string in Rename
authorAkshat Kumar <seed@mail.nanosouffle.net>
Thu, 28 Feb 2013 22:20:42 +0000 (14:20 -0800)
committerRob Pike <r@golang.org>
Thu, 28 Feb 2013 22:20:42 +0000 (14:20 -0800)
commitbd889907228024c1c682e86859611002e894abf8
tree53dc22524d5ea4035f7a88f9814a641f1b62110e
parent5bffa3b88e0d84e45139a891f25169399bfe10cc
os: Plan 9: allocate space for a string in Rename

The Name field of the stat structure is variable length
and the marshalling code in package syscall requires
a buf long enough to contain the Name as well as the
static data. This change makes sure that the buffer in
os.Rename is allocated with the appropriate length.

R=rsc, rminnich, ality, r
CC=golang-dev
https://golang.org/cl/7453044
src/pkg/os/file_plan9.go