-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix invalid limit #5
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
kossh/src/main/kotlin/kossh/impl/SSHScp.kt
Line 93 in f7d671e
Kotlin version: 1.4.10
Argument limit=-1 goes to underlying kotlin.text.Regex.split(input: CharSequence, limit: Int = 0) which doesn't accept negative values:
require(limit >= 0, { "Limit must be non-negative, but was $limit." })
The text was updated successfully, but these errors were encountered: