aboutsummaryrefslogtreecommitdiff
path: root/nexgb/xselinux/xselinux.go
diff options
context:
space:
mode:
Diffstat (limited to 'nexgb/xselinux/xselinux.go')
-rw-r--r--nexgb/xselinux/xselinux.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/nexgb/xselinux/xselinux.go b/nexgb/xselinux/xselinux.go
index 757a285..f24f5d7 100644
--- a/nexgb/xselinux/xselinux.go
+++ b/nexgb/xselinux/xselinux.go
@@ -115,9 +115,9 @@ func ListItemListBytes(buf []byte, list []ListItem) int {
for _, item := range list {
structBytes = item.Bytes()
copy(buf[b:], structBytes)
- b += xgb.Pad(len(structBytes))
+ b += len(structBytes)
}
- return b
+ return xgb.Pad(b)
}
// ListItemListSize computes the size (bytes) of a list of ListItem values.