From cdbc8241c4be92fd4fbb6b7b819e84dce4a06850 Mon Sep 17 00:00:00 2001 From: aarzilli Date: Fri, 2 May 2014 15:09:23 +0200 Subject: Fix Issue #21: automatic calculation of alignment padding after lists --- xinerama/xinerama.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xinerama') diff --git a/xinerama/xinerama.go b/xinerama/xinerama.go index 28410c6..75c773c 100644 --- a/xinerama/xinerama.go +++ b/xinerama/xinerama.go @@ -90,7 +90,7 @@ func (v ScreenInfo) Bytes() []byte { xgb.Put16(buf[b:], v.Height) b += 2 - return buf + return buf[:b] } // ScreenInfoListBytes writes a list of ScreenInfo values to a byte slice. -- cgit v1.2.3