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 /xfixes/xfixes.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 'xfixes/xfixes.go')
| -rw-r--r-- | xfixes/xfixes.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xfixes/xfixes.go b/xfixes/xfixes.go index a34df54..9a08c93 100644 --- a/xfixes/xfixes.go +++ b/xfixes/xfixes.go @@ -1495,7 +1495,7 @@ func getCursorImageAndNameReply(buf []byte) *GetCursorImageAndNameReply { byteString := make([]byte, v.Nbytes) copy(byteString[:v.Nbytes], buf[b:]) v.Name = string(byteString) - b += xgb.Pad(int(v.Nbytes)) + b += int(v.Nbytes) } v.CursorImage = make([]uint32, (int(v.Width) * int(v.Height))) @@ -1602,7 +1602,7 @@ func getCursorNameReply(buf []byte) *GetCursorNameReply { byteString := make([]byte, v.Nbytes) copy(byteString[:v.Nbytes], buf[b:]) v.Name = string(byteString) - b += xgb.Pad(int(v.Nbytes)) + b += int(v.Nbytes) } return v |
