1
0
mirror of https://github.com/UzixLS/picocom.git synced 2025-07-19 07:21:18 +03:00

Corrected typo tha caused the send command to be run instead

of the receive command when a filename was given.

(fixes issue 5)
This commit is contained in:
Nick Patavalis
2010-06-24 19:54:23 +00:00
parent 0c37a3e089
commit 8f171bb8b6

View File

@ -812,7 +812,7 @@ loop(void)
if ( r <= -1 )
fatal("cannot read filename: %s", strerror(errno));
if ( fname[0] )
run_cmd(tty_fd, opts.send_cmd, fname, NULL);
run_cmd(tty_fd, opts.receive_cmd, fname, NULL);
else
run_cmd(tty_fd, opts.receive_cmd, NULL);
break;