kopia lustrzana https://github.com/Hamlib/Hamlib
fix send_cmd bug, patch by Rob Frohne, KL7NA
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2544 7ae35d74-ebe9-4afe-98af-79ac388436b8Hamlib-1.2.9
rodzic
5f2d5bd69e
commit
be4c171328
|
@ -5,7 +5,7 @@
|
||||||
* It takes commands in interactive mode as well as
|
* It takes commands in interactive mode as well as
|
||||||
* from command line options.
|
* from command line options.
|
||||||
*
|
*
|
||||||
* $Id: rotctl_parse.c,v 1.3 2008-10-27 22:23:36 fillods Exp $
|
* $Id: rotctl_parse.c,v 1.4 2009-01-01 18:19:26 fillods Exp $
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software; you can redistribute it and/or
|
||||||
|
@ -592,12 +592,12 @@ declare_proto_rot(send_cmd)
|
||||||
} else {
|
} else {
|
||||||
strncpy(bufcmd,arg1,BUFSZ);
|
strncpy(bufcmd,arg1,BUFSZ);
|
||||||
bufcmd[BUFSZ-1] = '\0';
|
bufcmd[BUFSZ-1] = '\0';
|
||||||
cmd_len = strlen(bufcmd);
|
|
||||||
/*
|
/*
|
||||||
* assumes CR is end of line char
|
* assumes CR is end of line char
|
||||||
* for all ascii protocols
|
* for all ascii protocols.
|
||||||
*/
|
*/
|
||||||
strcat(bufcmd, "\r");
|
strcat(bufcmd, "\r");
|
||||||
|
cmd_len = strlen(bufcmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
rs = &rot->state;
|
rs = &rot->state;
|
||||||
|
|
Ładowanie…
Reference in New Issue