diff options
| author | Andrew Gallant <[email protected]> | 2013-12-28 10:02:18 -0500 |
|---|---|---|
| committer | Andrew Gallant <[email protected]> | 2013-12-28 10:02:18 -0500 |
| commit | c3541209a0fb8271645c882f7e4a4d7254823992 (patch) | |
| tree | 1bf8042cbe4c01f8f2b74640142ef35ba9e12630 /glx/glx.go | |
| parent | 276338409158b6e8f45afadc94bd16532a369ef8 (diff) | |
It appears that the "Str" type (which is built into the core X protocol)
doesn't specify any padding. So it has to be treated as a special case.
Close #12.
Diffstat (limited to 'glx/glx.go')
| -rw-r--r-- | glx/glx.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -6885,7 +6885,7 @@ func getStringReply(buf []byte) *GetStringReply { byteString := make([]byte, v.N) copy(byteString[:v.N], buf[b:]) v.String = string(byteString) - b += xgb.Pad(int(v.N)) + b += int(v.N) } return v @@ -9174,7 +9174,7 @@ func queryServerStringReply(buf []byte) *QueryServerStringReply { byteString := make([]byte, v.StrLen) copy(byteString[:v.StrLen], buf[b:]) v.String = string(byteString) - b += xgb.Pad(int(v.StrLen)) + b += int(v.StrLen) } return v |
