diff options
| author | Andrew Gallant (Ocelot) <[email protected]> | 2012-05-03 22:47:50 -0400 |
|---|---|---|
| committer | Andrew Gallant (Ocelot) <[email protected]> | 2012-05-03 22:47:50 -0400 |
| commit | 9f44c6226003c93fd8a43bc0e35b433325c894eb (patch) | |
| tree | f685f8c6fff1b3e6a4e115539c4788fee7988fb8 /auth.go | |
| parent | 9028aaf89872d8d90c65254c17658bfaf8a4918d (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.go | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |
