aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/bytes.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/bytes.go b/common/bytes.go
index 0342083a1..c445968f2 100644
--- a/common/bytes.go
+++ b/common/bytes.go
@@ -89,18 +89,18 @@ func Hex2BytesFixed(str string, flen int) []byte {
}
func RightPadBytes(slice []byte, l int) []byte {
- if l < len(slice) {
+ if l <= len(slice) {
return slice
}
padded := make([]byte, l)
- copy(padded[0:len(slice)], slice)
+ copy(padded, slice)
return padded
}
func LeftPadBytes(slice []byte, l int) []byte {
- if l < len(slice) {
+ if l <= len(slice) {
return slice
}
d_yarn/devel/electron6/files/ini-1.3.8&id=feb9ef4c1bfb483b97ae29bd5498bee7873b130e&showmsg=1'>Expand)AuthorAgeFilesLines * - Add ptex/* directories.hrs2005-02-112-1/+4 * Fix a bug which prevents "make install".hrs2005-02-071-2/+2 * Update to 2.99.13.20040204, a teTeX-3.0 release candidate.hrs2005-02-062-35/+1065 * Add $TEXMFLOCAL/doc/latex directory.hrs2004-12-291-1/+2 * - Remove tetex-modesw dependency.hrs2004-12-222-179/+18 * Add more directories.hrs2004-10-261-3/+3 * Add tetex-modesw script and several new directories.hrs2004-06-18