diff options
author | joerg <joerg> | 2012-11-19 23:23:38 +0000 |
---|---|---|
committer | joerg <joerg> | 2012-11-19 23:23:38 +0000 |
commit | 3952d91f269ba34bbdd6a59db58e0c34882d0018 (patch) | |
tree | 7a19dd410427fe7dc90a4d8fc16b5006450854eb /ham | |
parent | b1fa7d2e21297dd038d4f9cc68de70c68881109e (diff) | |
download | pkgsrc-3952d91f269ba34bbdd6a59db58e0c34882d0018.tar.gz |
Don't use variable length arrays of non-POD types
Diffstat (limited to 'ham')
-rw-r--r-- | ham/fldigi/distinfo | 3 | ||||
-rw-r--r-- | ham/fldigi/patches/patch-src_throb_throb.cxx | 30 |
2 files changed, 32 insertions, 1 deletions
diff --git a/ham/fldigi/distinfo b/ham/fldigi/distinfo index 45388683554..fd22677dca7 100644 --- a/ham/fldigi/distinfo +++ b/ham/fldigi/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.8 2012/11/03 12:43:05 mef Exp $ +$NetBSD: distinfo,v 1.9 2012/11/19 23:23:38 joerg Exp $ SHA1 (fldigi-3.21.58.tar.gz) = 8ec7ec70cfcc0591fcfd0e3bcb34f9d5a24cab7a RMD160 (fldigi-3.21.58.tar.gz) = 32f3dd51c99285cc3addf3a402365b4db7af0a5b Size (fldigi-3.21.58.tar.gz) = 1794407 bytes SHA1 (patch-src_misc_newinstall.cxx) = 9cb519bb0bc862b18cfc7fb7bf85c2259e4ff2f0 +SHA1 (patch-src_throb_throb.cxx) = 4515fdfe67aec3273ebe2d9a348f8e13ef596c71 diff --git a/ham/fldigi/patches/patch-src_throb_throb.cxx b/ham/fldigi/patches/patch-src_throb_throb.cxx new file mode 100644 index 00000000000..de0afcfb96e --- /dev/null +++ b/ham/fldigi/patches/patch-src_throb_throb.cxx @@ -0,0 +1,30 @@ +$NetBSD: patch-src_throb_throb.cxx,v 1.1 2012/11/19 23:23:39 joerg Exp $ + +--- src/throb/throb.cxx.orig 2012-11-19 16:10:27.000000000 +0000 ++++ src/throb/throb.cxx +@@ -410,7 +410,6 @@ void throb::decodechar(int tone1, int to + + void throb::rx(complex in) + { +- complex rxword[num_tones]; + int i, tone1, tone2, maxtone; + + symbol[symptr] = in; +@@ -418,6 +417,8 @@ void throb::rx(complex in) + if (rxcntr > 0.0) + return; + ++ complex *rxword = new complex[num_tones]; ++ + // correlate against all tones + for (i = 0; i < num_tones; i++) + rxword[i] = cmac(rxtone[i], symbol, symptr + 1, rxsymlen); +@@ -445,6 +446,8 @@ void throb::rx(complex in) + set_freq(frequency + f / (num_tones - 1)); + } + ++ delete[] rxword; ++ + /* done with this symbol, start over */ + rxcntr = rxsymlen; + waitsync = 1; |