Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scp.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ func scpReadCommand(src *bufio.Reader) (string, error) {
// Parse the SCP command
func parseSCPCommand(cmd string) (*SCPCommand, error) {
parsePieces := func(cstr string, c *SCPCommand) error {
pieces := strings.Split(cmd, " ")
pieces := strings.SplitN(cmd, " ", 3)
if len(pieces) != 3 {
return ErrInvalidPieces
}
Expand Down