Commit Graph

15 Commits

Author SHA1 Message Date
Michael Black W9MDB
f454cff0b7 Add check for -s switch on all utils to ensure integer is entered 2020-07-01 08:52:44 -05:00
Michael Black
ee87d5e6df Fix buffer overrun in all utilities
Change MAXCONFLEN to 1024 bytes for some future proofing
2020-04-01 14:51:50 -05:00
Michael Black
bda5feb1bd More cppcheck changes 2020-03-23 10:13:02 -05:00
Michael Black
0fd7278682
Fix cppcheck warning in rigswr.c 2020-01-14 12:20:06 -06:00
Michael Black
7ee3a702f5
Replace all usleep with hl_usleep
Several places where usleep max value could be overflowed
New hl_usleep can take values > 1000000
2020-01-07 23:18:56 -06:00
Michael Black
6bf3b00c4f
astyle all files 2019-11-30 10:19:08 -06:00
Michael Black
2f4d62709e
Added a dummy snprintf to rig_debug to allow gcc to check format strings
This found tons of errors in rig_debug statements
So this patch cleans up all the files that were producing warnings or errors
This should fix a few segfaults when running with debug turned on
2019-11-30 10:04:31 -06:00
Nate Bargmann
b692fb22ef Formatted tests/ to final coding guidelines 2017-10-06 18:58:42 -05:00
Nate Bargmann
d489b8bcb5 Apply formatting to 'tests/' directory
Format per style guide.
2017-08-10 05:46:12 -05:00
Nate Bargmann
1229a0a42a Assure NULL terminated strings in tests programs.
Various strncpy operations could result in a port pathname that is not a
NULL terminated string as the allowed string length is the same size as
the buffer per the strncpy manual page.  This is corrected by assuring
that the allowed length is FILPATHLEN - 1.
2012-01-07 20:36:50 -06:00
Nate Bargmann
0882cd696d Update GPL/LGPL header in tests source files.
TNX to Lucian Laga, YO6PLB, for the notification.
2011-08-22 21:38:37 -05:00
Kamal Mostafa, KA6MAL
cf276991f2 Fix segfault on improper -C syntax
Avoid null pointer segfault when -C param is specified with no '=' e.g.
"rigctl -C foo".

Thanks to Charles Suprin <hamaa1vs@gmail.com> for the report.



git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@3058 7ae35d74-ebe9-4afe-98af-79ac388436b8
2011-02-21 19:32:00 +00:00
Stéphane Fillod, F8CFE
7450b7473d tab reformat
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1994 7ae35d74-ebe9-4afe-98af-79ac388436b8
2005-04-04 22:26:38 +00:00
Stéphane Fillod, F8CFE
15cb5b9f50 * add non legacy PTT control support
* set RFPOWER to 25% when transmitting
* check rig has set_ptt capability before going further
* misc fixes and cleanup


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1764 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-06-14 22:22:31 +00:00
Thierry Leconte, F4DWV
22eb95c38e add rigswr
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1756 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-06-14 20:13:35 +00:00