summaryrefslogtreecommitdiff
path: root/auth.go
diff options
context:
space:
mode:
authorAndrew Gallant (Ocelot) <[email protected]>2012-05-03 22:47:50 -0400
committerAndrew Gallant (Ocelot) <[email protected]>2012-05-03 22:47:50 -0400
commit9f44c6226003c93fd8a43bc0e35b433325c894eb (patch)
treef685f8c6fff1b3e6a4e115539c4788fee7988fb8 /auth.go
parent9028aaf89872d8d90c65254c17658bfaf8a4918d (diff)
reworking xgb. cleaned up connection stuff a little. making new xid generation cleaner and use goroutines for it.
Diffstat (limited to 'auth.go')
-rw-r--r--auth.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/auth.go b/auth.go
index 355afeb..ac43e07 100644
--- a/auth.go
+++ b/auth.go
@@ -44,8 +44,10 @@ func getString(r io.Reader, b []byte) (string, error) {
// readAuthority reads the X authority file for the DISPLAY.
// If hostname == "" or hostname == "localhost",
-// readAuthority uses the system's hostname (as returned by os.Hostname) instead.
-func readAuthority(hostname, display string) (name string, data []byte, err error) {
+// then use the system's hostname (as returned by os.Hostname) instead.
+func readAuthority(hostname, display string) (
+ name string, data []byte, err error) {
+
// b is a scratch buffer to use and should be at least 256 bytes long
// (i.e. it should be able to hold a hostname).
var b [256]byte