kossh icon indicating copy to clipboard operation
kossh copied to clipboard

Fix invalid limit

Open nosshar opened this issue 4 years ago • 0 comments

https://github.com/jkelly467/kossh/blob/f7d671e241931d73711328588a00382dc12fcdd8/src/main/kotlin/kossh/impl/SSHScp.kt#L93

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." })

nosshar avatar Jan 15 '21 20:01 nosshar