diff options
Diffstat (limited to 'nexgb/xprint/xprint.go')
-rw-r--r-- | nexgb/xprint/xprint.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nexgb/xprint/xprint.go b/nexgb/xprint/xprint.go index 48557fe..be9f2e8 100644 --- a/nexgb/xprint/xprint.go +++ b/nexgb/xprint/xprint.go @@ -394,9 +394,9 @@ func PrinterListBytes(buf []byte, list []Printer) 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) } // PrinterListSize computes the size (bytes) of a list of Printer values. |