Skip to content

Commit

Permalink
Merge pull request #69 from essentialkaos/develop
Browse files Browse the repository at this point in the history
Version 3.4.2
  • Loading branch information
andyone authored Aug 29, 2016
2 parents 8fae9f5 + 1ecaba4 commit 85ac115
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## Changelog

#### v3.4.2

* `[strutil]` Fixed bug with overflowing int in `Tail` method

#### v3.4.1

* `[terminal]` Improved reading user input
Expand Down
2 changes: 1 addition & 1 deletion strutil/strutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func Tail(s string, n int) string {
return s
}

return Substr(s, l-n, 99999999999)
return Substr(s, l-n, l)
}

// PrefixSize return prefix size
Expand Down

0 comments on commit 85ac115

Please sign in to comment.