OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
syscall: Fix handling of Unix domain @ addresses.
[pf3gnuchains/gcc-fork.git]
/
libgo
/
go
/
syscall
/
socket_linux.go
diff --git
a/libgo/go/syscall/socket_linux.go
b/libgo/go/syscall/socket_linux.go
index
42ab218
..
224ca55
100644
(file)
--- a/
libgo/go/syscall/socket_linux.go
+++ b/
libgo/go/syscall/socket_linux.go
@@
-103,7
+103,7
@@
func (sa *RawSockaddrUnix) getLen() (int, error) {
// to be uninterpreted fixed-size binary blobs--but
// everyone uses this convention.
n := 0
// to be uninterpreted fixed-size binary blobs--but
// everyone uses this convention.
n := 0
- for n < len(sa.Path)
- 3
&& sa.Path[n] != 0 {
+ for n < len(sa.Path) && sa.Path[n] != 0 {
n++
}
n++
}