From 98a81a507400867065dd257524a9357cdb9b3397 Mon Sep 17 00:00:00 2001 From: Daniele Forsi IU5HKX Date: Sat, 2 Aug 2025 20:03:10 +0200 Subject: [PATCH] Replace magic number with a defined constant The same constant is used by memset() in getmyline(). --- simulators/simatd578.c | 2 +- simulators/simeasycomm.c | 2 +- simulators/simelecraft.c | 2 +- simulators/simelecraftk4.c | 2 +- simulators/simft1000.c | 2 +- simulators/simft450.c | 2 +- simulators/simft710.c | 2 +- simulators/simft736.c | 2 +- simulators/simft747gx.c | 2 +- simulators/simft817.c | 2 +- simulators/simft818.c | 2 +- simulators/simft847.c | 2 +- simulators/simft897.c | 2 +- simulators/simft990.c | 2 +- simulators/simft991.c | 2 +- simulators/simftdx101.c | 2 +- simulators/simftdx1200.c | 2 +- simulators/simftdx3000.c | 2 +- simulators/simftdx5000.c | 2 +- simulators/simic2730.c | 2 +- simulators/simic275.c | 2 +- simulators/simic7000.c | 2 +- simulators/simic705.c | 2 +- simulators/simic7100.c | 2 +- simulators/simic7200.c | 2 +- simulators/simic7300.c | 2 +- simulators/simic7600.c | 2 +- simulators/simic7610.c | 2 +- simulators/simic7700.c | 2 +- simulators/simic7851.c | 2 +- simulators/simic905.c | 2 +- simulators/simic910.c | 2 +- simulators/simic9100.c | 2 +- simulators/simic9700.c | 2 +- simulators/simicgeneric.c | 2 +- simulators/simicr8600.c | 2 +- simulators/simid5100.c | 2 +- simulators/simjupiter.c | 2 +- simulators/simkenwood.c | 2 +- simulators/simmicom.c | 2 +- simulators/simorion.c | 2 +- simulators/simpmr171.c | 2 +- simulators/simpowersdr.c | 2 +- simulators/simqrplabs.c | 2 +- simulators/simrotorez.c | 2 +- simulators/simspid.c | 2 +- simulators/simtmd700.c | 2 +- simulators/simtmd710.c | 2 +- simulators/simtrusdx.c | 2 +- simulators/simts450.c | 2 +- simulators/simts590.c | 2 +- simulators/simts890.c | 2 +- simulators/simts950.c | 2 +- simulators/simts990.c | 2 +- simulators/simxiegug90.c | 2 +- simulators/simxiegux108g.c | 2 +- simulators/simxiegux6100.c | 2 +- simulators/simyaesu.c | 2 +- 58 files changed, 58 insertions(+), 58 deletions(-) diff --git a/simulators/simatd578.c b/simulators/simatd578.c index d58689056..cac37f5d0 100644 --- a/simulators/simatd578.c +++ b/simulators/simatd578.c @@ -62,7 +62,7 @@ getmyline(int fd, unsigned char *buf) int main(int argc, char *argv[]) { - unsigned char buf[256], buf2[256]; + unsigned char buf[BUFSIZE], buf2[256]; int n; again: diff --git a/simulators/simeasycomm.c b/simulators/simeasycomm.c index 76e0252c9..81c8c4cf9 100644 --- a/simulators/simeasycomm.c +++ b/simulators/simeasycomm.c @@ -114,7 +114,7 @@ int main(int argc, char *argv[]) static void *rotorez_thread(void *arg) { int n = 0; - char buf[256]; + char buf[BUFSIZE]; int fd = *(int *)arg; float az = 123; float el = 45; diff --git a/simulators/simelecraft.c b/simulators/simelecraft.c index 9d08c55a8..7fb306e8c 100644 --- a/simulators/simelecraft.c +++ b/simulators/simelecraft.c @@ -63,7 +63,7 @@ getmyline(int fd, char *buf) int main(int argc, char *argv[]) { - char buf[256]; + char buf[BUFSIZE]; char *pbuf; int n; int fd = openPort(argv[1]); diff --git a/simulators/simelecraftk4.c b/simulators/simelecraftk4.c index 372a48105..1b734f128 100644 --- a/simulators/simelecraftk4.c +++ b/simulators/simelecraftk4.c @@ -64,7 +64,7 @@ getmyline(int fd, char *buf) int main(int argc, char *argv[]) { - char buf[256]; + char buf[BUFSIZE]; char *pbuf; int n; int fd = openPort(argv[1]); diff --git a/simulators/simft1000.c b/simulators/simft1000.c index 5ff83f673..16cf1c03d 100644 --- a/simulators/simft1000.c +++ b/simulators/simft1000.c @@ -49,7 +49,7 @@ getmyline(int fd, unsigned char *buf) int main(int argc, char *argv[]) { - unsigned char buf[256]; + unsigned char buf[BUFSIZE]; again: int fd = openPort(argv[1]); diff --git a/simulators/simft450.c b/simulators/simft450.c index d53245af6..7ab974d74 100644 --- a/simulators/simft450.c +++ b/simulators/simft450.c @@ -97,7 +97,7 @@ getmyline(int fd, char *buf) int main(int argc, char *argv[]) { - char buf[256]; + char buf[BUFSIZE]; char *pbuf; int n; int fd = openPort(argv[1]); diff --git a/simulators/simft710.c b/simulators/simft710.c index c3b59ad77..824717d5e 100644 --- a/simulators/simft710.c +++ b/simulators/simft710.c @@ -99,7 +99,7 @@ getmyline(int fd, char *buf) int main(int argc, char *argv[]) { - char buf[256]; + char buf[BUFSIZE]; char *pbuf; int n; int fd = openPort(argv[1]); diff --git a/simulators/simft736.c b/simulators/simft736.c index b7c3268f6..cb86bd747 100644 --- a/simulators/simft736.c +++ b/simulators/simft736.c @@ -49,7 +49,7 @@ getmyline(int fd, unsigned char *buf) int main(int argc, char *argv[]) { - unsigned char buf[256]; + unsigned char buf[BUFSIZE]; again: int fd = openPort(argv[1]); diff --git a/simulators/simft747gx.c b/simulators/simft747gx.c index 43cccfe34..97205ea5b 100644 --- a/simulators/simft747gx.c +++ b/simulators/simft747gx.c @@ -50,7 +50,7 @@ getmyline(int fd, unsigned char *buf) int main(int argc, char *argv[]) { - unsigned char buf[256]; + unsigned char buf[BUFSIZE]; again: int fd = openPort(argv[1]); diff --git a/simulators/simft817.c b/simulators/simft817.c index 84b4c5671..9a2aa229b 100644 --- a/simulators/simft817.c +++ b/simulators/simft817.c @@ -50,7 +50,7 @@ getmyline(int fd, unsigned char *buf) int main(int argc, char *argv[]) { - unsigned char buf[256]; + unsigned char buf[BUFSIZE]; again: int fd = openPort(argv[1]); diff --git a/simulators/simft818.c b/simulators/simft818.c index e0fe6762b..a01dc709b 100644 --- a/simulators/simft818.c +++ b/simulators/simft818.c @@ -73,7 +73,7 @@ getmyline(int fd, char *buf) int main(int argc, char *argv[]) { - char buf[256]; + char buf[BUFSIZE]; char resp[256]; char *pbuf; int n; diff --git a/simulators/simft847.c b/simulators/simft847.c index 8220fa6b1..e8ab81ebe 100644 --- a/simulators/simft847.c +++ b/simulators/simft847.c @@ -52,7 +52,7 @@ getmyline(int fd, unsigned char *buf) int main(int argc, char *argv[]) { - unsigned char buf[256]; + unsigned char buf[BUFSIZE]; int freq, i, n; diff --git a/simulators/simft897.c b/simulators/simft897.c index 873f46565..98adbbcb7 100644 --- a/simulators/simft897.c +++ b/simulators/simft897.c @@ -51,7 +51,7 @@ getmyline(int fd, unsigned char *buf) int main(int argc, char *argv[]) { - unsigned char buf[256]; + unsigned char buf[BUFSIZE]; int n; diff --git a/simulators/simft990.c b/simulators/simft990.c index 9f150b038..ab14e9bf8 100644 --- a/simulators/simft990.c +++ b/simulators/simft990.c @@ -107,7 +107,7 @@ getmyline(int fd, char *buf) int main(int argc, char *argv[]) { - char buf[256]; + char buf[BUFSIZE]; int fd = openPort(argv[1]); load_dat("simft990.dat", alldata); diff --git a/simulators/simft991.c b/simulators/simft991.c index ce90880e7..a894460d1 100644 --- a/simulators/simft991.c +++ b/simulators/simft991.c @@ -76,7 +76,7 @@ getmyline(int fd, char *buf) int main(int argc, char *argv[]) { - char buf[256]; + char buf[BUFSIZE]; char *pbuf; int n; int fd = openPort(argv[1]); diff --git a/simulators/simftdx101.c b/simulators/simftdx101.c index 7a034a4ff..ce1077d9c 100644 --- a/simulators/simftdx101.c +++ b/simulators/simftdx101.c @@ -84,7 +84,7 @@ getmyline(int fd, char *buf) int main(int argc, char *argv[]) { - char buf[256]; + char buf[BUFSIZE]; char *pbuf; int n; int fd = openPort(argv[1]); diff --git a/simulators/simftdx1200.c b/simulators/simftdx1200.c index bb475394b..8e2b06f58 100644 --- a/simulators/simftdx1200.c +++ b/simulators/simftdx1200.c @@ -75,7 +75,7 @@ getmyline(int fd, char *buf) int main(int argc, char *argv[]) { - char buf[256]; + char buf[BUFSIZE]; char *pbuf; int n; int fd = openPort(argv[1]); diff --git a/simulators/simftdx3000.c b/simulators/simftdx3000.c index 0e69f95b1..22ea15ad8 100644 --- a/simulators/simftdx3000.c +++ b/simulators/simftdx3000.c @@ -74,7 +74,7 @@ getmyline(int fd, char *buf) int main(int argc, char *argv[]) { - char buf[256]; + char buf[BUFSIZE]; char *pbuf; int n; int fd = openPort(argv[1]); diff --git a/simulators/simftdx5000.c b/simulators/simftdx5000.c index fba9ced8e..efa3b987d 100644 --- a/simulators/simftdx5000.c +++ b/simulators/simftdx5000.c @@ -76,7 +76,7 @@ getmyline(int fd, char *buf) int main(int argc, char *argv[]) { - char buf[256]; + char buf[BUFSIZE]; char *pbuf; int n; int fd = openPort(argv[1]); diff --git a/simulators/simic2730.c b/simulators/simic2730.c index 824c88a35..6b849f739 100644 --- a/simulators/simic2730.c +++ b/simulators/simic2730.c @@ -531,7 +531,7 @@ void rigStatus() int main(int argc, char **argv) { - unsigned char buf[256]; + unsigned char buf[BUFSIZE]; int fd = openPort(argv[1]); printf("%s: %s\n", argv[0], rig_version()); diff --git a/simulators/simic275.c b/simulators/simic275.c index bbc729788..7801b19b3 100644 --- a/simulators/simic275.c +++ b/simulators/simic275.c @@ -526,7 +526,7 @@ void rigStatus() int main(int argc, char **argv) { - unsigned char buf[256]; + unsigned char buf[BUFSIZE]; int fd = openPort(argv[1]); printf("%s: %s\n", argv[0], rig_version()); diff --git a/simulators/simic7000.c b/simulators/simic7000.c index b35752b02..43434efdc 100644 --- a/simulators/simic7000.c +++ b/simulators/simic7000.c @@ -544,7 +544,7 @@ void rigStatus() int main(int argc, char **argv) { - unsigned char buf[256]; + unsigned char buf[BUFSIZE]; int fd = openPort(argv[1]); printf("%s: %s\n", argv[0], rig_version()); diff --git a/simulators/simic705.c b/simulators/simic705.c index f9caf4070..edbfa4c1c 100644 --- a/simulators/simic705.c +++ b/simulators/simic705.c @@ -600,7 +600,7 @@ void rigStatus() int main(int argc, char **argv) { - unsigned char buf[256]; + unsigned char buf[BUFSIZE]; int fd = openPort(argv[1]); printf("%s: %s\n", argv[0], rig_version()); diff --git a/simulators/simic7100.c b/simulators/simic7100.c index 0d458350f..363606c33 100644 --- a/simulators/simic7100.c +++ b/simulators/simic7100.c @@ -490,7 +490,7 @@ void rigStatus() int main(int argc, char **argv) { - unsigned char buf[256]; + unsigned char buf[BUFSIZE]; int fd = openPort(argv[1]); printf("%s: %s\n", argv[0], rig_version()); diff --git a/simulators/simic7200.c b/simulators/simic7200.c index c44e51c25..64b8e23df 100644 --- a/simulators/simic7200.c +++ b/simulators/simic7200.c @@ -820,7 +820,7 @@ void rigStatus() int main(int argc, char **argv) { - unsigned char buf[256]; + unsigned char buf[BUFSIZE]; int fd = openPort(argv[1]); printf("%s: %s\n", argv[0], rig_version()); diff --git a/simulators/simic7300.c b/simulators/simic7300.c index 12da61b79..c5f48e54c 100644 --- a/simulators/simic7300.c +++ b/simulators/simic7300.c @@ -731,7 +731,7 @@ printf("%cVFOB: mode=%d datamode=%d width=%ld freq=%.0f\n", vfob, modeB, int main(int argc, char **argv) { -unsigned char buf[256]; +unsigned char buf[BUFSIZE]; int fd = openPort(argv[1]); printf("%s: %s\n", argv[0], rig_version()); diff --git a/simulators/simic7600.c b/simulators/simic7600.c index 13f29c511..7e8071ab1 100644 --- a/simulators/simic7600.c +++ b/simulators/simic7600.c @@ -642,7 +642,7 @@ void rigStatus() int main(int argc, char **argv) { - unsigned char buf[256]; + unsigned char buf[BUFSIZE]; int fd = openPort(argv[1]); printf("%s: %s\n", argv[0], rig_version()); diff --git a/simulators/simic7610.c b/simulators/simic7610.c index 3312efbae..84c5e8386 100644 --- a/simulators/simic7610.c +++ b/simulators/simic7610.c @@ -747,7 +747,7 @@ void rigStatus() int main(int argc, char **argv) { - unsigned char buf[256]; + unsigned char buf[BUFSIZE]; int fd = openPort(argv[1]); printf("%s: %s\n", argv[0], rig_version()); diff --git a/simulators/simic7700.c b/simulators/simic7700.c index 72f3d0f8d..bfcde60e5 100644 --- a/simulators/simic7700.c +++ b/simulators/simic7700.c @@ -709,7 +709,7 @@ printf("%cVFOB: mode=%d datamode=%d width=%ld freq=%.0f\n", vfob, modeB, int main(int argc, char **argv) { -unsigned char buf[256]; +unsigned char buf[BUFSIZE]; int fd = openPort(argv[1]); printf("%s: %s\n", argv[0], rig_version()); diff --git a/simulators/simic7851.c b/simulators/simic7851.c index b14cc09e9..f5e5e6272 100644 --- a/simulators/simic7851.c +++ b/simulators/simic7851.c @@ -812,7 +812,7 @@ void rigStatus() int main(int argc, char **argv) { - unsigned char buf[256]; + unsigned char buf[BUFSIZE]; int fd = openPort(argv[1]); printf("%s: %s\n", argv[0], rig_version()); diff --git a/simulators/simic905.c b/simulators/simic905.c index 8ccafb872..e6fcd825a 100644 --- a/simulators/simic905.c +++ b/simulators/simic905.c @@ -607,7 +607,7 @@ void rigStatus() int main(int argc, char **argv) { - unsigned char buf[256]; + unsigned char buf[BUFSIZE]; int fd = openPort(argv[1]); printf("%s: %s\n", argv[0], rig_version()); diff --git a/simulators/simic910.c b/simulators/simic910.c index 83796e276..327316337 100644 --- a/simulators/simic910.c +++ b/simulators/simic910.c @@ -611,7 +611,7 @@ void rigStatus() int main(int argc, char **argv) { - unsigned char buf[256]; + unsigned char buf[BUFSIZE]; int fd = openPort(argv[1]); printf("%s: %s\n", argv[0], rig_version()); diff --git a/simulators/simic9100.c b/simulators/simic9100.c index 51c1d7d79..3203b1bb6 100644 --- a/simulators/simic9100.c +++ b/simulators/simic9100.c @@ -543,7 +543,7 @@ void rigStatus() int main(int argc, char **argv) { - unsigned char buf[256]; + unsigned char buf[BUFSIZE]; int fd = openPort(argv[1]); printf("%s: %s\n", argv[0], rig_version()); diff --git a/simulators/simic9700.c b/simulators/simic9700.c index bd4d194bd..e3315e191 100644 --- a/simulators/simic9700.c +++ b/simulators/simic9700.c @@ -573,7 +573,7 @@ void rigStatus() int main(int argc, char **argv) { - unsigned char buf[256]; + unsigned char buf[BUFSIZE]; int fd = openPort(argv[1]); printf("%s: %s\n", argv[0], rig_version()); diff --git a/simulators/simicgeneric.c b/simulators/simicgeneric.c index 799bf5e29..99a4e1245 100644 --- a/simulators/simicgeneric.c +++ b/simulators/simicgeneric.c @@ -414,7 +414,7 @@ void rigStatus() int main(int argc, char **argv) { - unsigned char buf[256]; + unsigned char buf[BUFSIZE]; int fd = openPort(argv[1]); printf("%s: %s\n", argv[0], rig_version()); diff --git a/simulators/simicr8600.c b/simulators/simicr8600.c index af95d677a..6ea3f22fc 100644 --- a/simulators/simicr8600.c +++ b/simulators/simicr8600.c @@ -409,7 +409,7 @@ void rigStatus() int main(int argc, char **argv) { - unsigned char buf[256]; + unsigned char buf[BUFSIZE]; int fd = openPort(argv[1]); printf("%s: %s\n", argv[0], rig_version()); diff --git a/simulators/simid5100.c b/simulators/simid5100.c index d0c0116ba..8ef82f029 100644 --- a/simulators/simid5100.c +++ b/simulators/simid5100.c @@ -401,7 +401,7 @@ void rigStatus() int main(int argc, char **argv) { - unsigned char buf[256]; + unsigned char buf[BUFSIZE]; int fd = openPort(argv[1]); printf("%s: %s\n", argv[0], rig_version()); diff --git a/simulators/simjupiter.c b/simulators/simjupiter.c index 83440b87f..f87c9ce85 100644 --- a/simulators/simjupiter.c +++ b/simulators/simjupiter.c @@ -50,7 +50,7 @@ getmyline(int fd, unsigned char *buf) int main(int argc, char *argv[]) { - unsigned char buf[256]; + unsigned char buf[BUFSIZE]; again: int fd = openPort(argv[1]); diff --git a/simulators/simkenwood.c b/simulators/simkenwood.c index 97f1cdc95..96f1495bd 100644 --- a/simulators/simkenwood.c +++ b/simulators/simkenwood.c @@ -49,7 +49,7 @@ getmyline(int fd, char *buf) int main(int argc, char *argv[]) { - char buf[256]; + char buf[BUFSIZE]; char *pbuf; int fd = openPort(argv[1]); int freqa = 14074000, freqb = 140735000; diff --git a/simulators/simmicom.c b/simulators/simmicom.c index b94626870..a9c25db0b 100644 --- a/simulators/simmicom.c +++ b/simulators/simmicom.c @@ -56,7 +56,7 @@ getmyline(int fd, unsigned char *buf) int main(int argc, char *argv[]) { - unsigned char buf[256]; + unsigned char buf[BUFSIZE]; again: diff --git a/simulators/simorion.c b/simulators/simorion.c index 738cb91f1..3b16df28c 100644 --- a/simulators/simorion.c +++ b/simulators/simorion.c @@ -47,7 +47,7 @@ getmyline(int fd, char *buf) int main(int argc, char *argv[]) { - char buf[256], reply[256]; + char buf[BUFSIZE], reply[256]; again: int fd = openPort(argv[1]); diff --git a/simulators/simpmr171.c b/simulators/simpmr171.c index 566e6eded..177c02a34 100644 --- a/simulators/simpmr171.c +++ b/simulators/simpmr171.c @@ -63,7 +63,7 @@ getmyline(int fd, unsigned char *buf) int main(int argc, char *argv[]) { - unsigned char buf[256]; + unsigned char buf[BUFSIZE]; again: int fd = openPort(argv[1]); diff --git a/simulators/simpowersdr.c b/simulators/simpowersdr.c index 05327927f..83ff8902e 100644 --- a/simulators/simpowersdr.c +++ b/simulators/simpowersdr.c @@ -50,7 +50,7 @@ getmyline(int fd, char *buf) int main(int argc, char *argv[]) { - char buf[256]; + char buf[BUFSIZE]; char *pbuf; int n; int fd = openPort(argv[1]); diff --git a/simulators/simqrplabs.c b/simulators/simqrplabs.c index d3329f642..0b9e7bd19 100644 --- a/simulators/simqrplabs.c +++ b/simulators/simqrplabs.c @@ -52,7 +52,7 @@ getmyline(int fd, char *buf) int main(int argc, char *argv[]) { - char buf[256]; + char buf[BUFSIZE]; char *pbuf; int fd = openPort(argv[1]); int freqa = 14074000, freqb = 140735000; diff --git a/simulators/simrotorez.c b/simulators/simrotorez.c index fa6c83a8b..021724fe8 100644 --- a/simulators/simrotorez.c +++ b/simulators/simrotorez.c @@ -114,7 +114,7 @@ int main(int argc, char *argv[]) static void *rotorez_thread(void *arg) { int n = 0; - char buf[256]; + char buf[BUFSIZE]; int fd = *(int *)arg; float az = 123; float el = 45; diff --git a/simulators/simspid.c b/simulators/simspid.c index 8a8d83e20..356a40f9f 100644 --- a/simulators/simspid.c +++ b/simulators/simspid.c @@ -49,7 +49,7 @@ getmyline(int fd, unsigned char *buf) int main(int argc, char *argv[]) { - unsigned char buf[256]; + unsigned char buf[BUFSIZE]; again: diff --git a/simulators/simtmd700.c b/simulators/simtmd700.c index 56521609b..9ee92f69a 100644 --- a/simulators/simtmd700.c +++ b/simulators/simtmd700.c @@ -49,7 +49,7 @@ getmyline(int fd, char *buf) int main(int argc, char *argv[]) { - char buf[256]; + char buf[BUFSIZE]; int n; int fd = openPort(argv[1]); diff --git a/simulators/simtmd710.c b/simulators/simtmd710.c index 54d55e611..82382f6b8 100644 --- a/simulators/simtmd710.c +++ b/simulators/simtmd710.c @@ -49,7 +49,7 @@ getmyline(int fd, char *buf) int main(int argc, char *argv[]) { - char buf[256]; + char buf[BUFSIZE]; int fd = openPort(argv[1]); while (1) diff --git a/simulators/simtrusdx.c b/simulators/simtrusdx.c index 67bb8125a..2fe6e8c34 100644 --- a/simulators/simtrusdx.c +++ b/simulators/simtrusdx.c @@ -54,7 +54,7 @@ getmyline(int fd, char *buf) int main(int argc, char *argv[]) { - char buf[256]; + char buf[BUFSIZE]; char *pbuf; int fd = openPort(argv[1]); int freqa = 14074000, freqb = 140735000; diff --git a/simulators/simts450.c b/simulators/simts450.c index 2c4a3f02d..3d2c88461 100644 --- a/simulators/simts450.c +++ b/simulators/simts450.c @@ -54,7 +54,7 @@ getmyline(int fd, char *buf) int main(int argc, char *argv[]) { - char buf[256]; + char buf[BUFSIZE]; char *pbuf; int fd = openPort(argv[1]); int freqa = 14074000, freqb = 140735000; diff --git a/simulators/simts590.c b/simulators/simts590.c index f28658b5f..4b44851ec 100644 --- a/simulators/simts590.c +++ b/simulators/simts590.c @@ -61,7 +61,7 @@ getmyline(int fd, char *buf) int main(int argc, char *argv[]) { - char buf[256]; + char buf[BUFSIZE]; char *pbuf; int fd = openPort(argv[1]); int freqa = 14074000, freqb = 140735000; diff --git a/simulators/simts890.c b/simulators/simts890.c index 9c5aa5f7a..630021582 100644 --- a/simulators/simts890.c +++ b/simulators/simts890.c @@ -232,7 +232,7 @@ getmyline(int fd, char *buf) int main(int argc, char *argv[]) { - char buf[256]; + char buf[BUFSIZE]; char *pbuf; int fd = openPort(argv[1]); int cmd_err = 0; diff --git a/simulators/simts950.c b/simulators/simts950.c index b53c0cfa1..a41d23ced 100644 --- a/simulators/simts950.c +++ b/simulators/simts950.c @@ -52,7 +52,7 @@ getmyline(int fd, char *buf) int main(int argc, char *argv[]) { - char buf[256]; + char buf[BUFSIZE]; char *pbuf; int fd = openPort(argv[1]); int freqa = 14074000, freqb = 140735000; diff --git a/simulators/simts990.c b/simulators/simts990.c index e6f7878bc..67b60a77b 100644 --- a/simulators/simts990.c +++ b/simulators/simts990.c @@ -85,7 +85,7 @@ getmyline(int fd, char *buf) int main(int argc, char *argv[]) { - char buf[256]; + char buf[BUFSIZE]; char *pbuf; int fd = openPort(argv[1]); char modeA = '1', modeB = '2'; diff --git a/simulators/simxiegug90.c b/simulators/simxiegug90.c index 512923ee9..23f5334e6 100644 --- a/simulators/simxiegug90.c +++ b/simulators/simxiegug90.c @@ -429,7 +429,7 @@ void rigStatus() int main(int argc, char **argv) { - unsigned char buf[256]; + unsigned char buf[BUFSIZE]; int fd = openPort(argv[1]); printf("%s: %s\n", argv[0], rig_version()); diff --git a/simulators/simxiegux108g.c b/simulators/simxiegux108g.c index ee88333f4..7211e2a0d 100644 --- a/simulators/simxiegux108g.c +++ b/simulators/simxiegux108g.c @@ -421,7 +421,7 @@ void rigStatus() int main(int argc, char **argv) { - unsigned char buf[256]; + unsigned char buf[BUFSIZE]; int fd = openPort(argv[1]); printf("%s: %s\n", argv[0], rig_version()); diff --git a/simulators/simxiegux6100.c b/simulators/simxiegux6100.c index 91b14382b..d9d22101b 100644 --- a/simulators/simxiegux6100.c +++ b/simulators/simxiegux6100.c @@ -434,7 +434,7 @@ void rigStatus() int main(int argc, char **argv) { - unsigned char buf[256]; + unsigned char buf[BUFSIZE]; int fd = openPort(argv[1]); printf("%s: %s\n", argv[0], rig_version()); diff --git a/simulators/simyaesu.c b/simulators/simyaesu.c index 9b7a4e604..dbc099334 100644 --- a/simulators/simyaesu.c +++ b/simulators/simyaesu.c @@ -79,7 +79,7 @@ getmyline(int fd, char *buf) int main(int argc, char *argv[]) { - char buf[256]; + char buf[BUFSIZE]; char resp[256]; char *pbuf; int n;