pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/spiralsynth/patches Make SpiralSynth run in 1.6Z...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d1a1b813c9f6
branches:  trunk
changeset: 468572:d1a1b813c9f6
user:      ben <ben%pkgsrc.org@localhost>
date:      Sun Feb 15 06:00:26 2004 +0000

description:
Make SpiralSynth run in 1.6ZF.  Some code expected declared pointers to be
zeroed, and coredumped with nonsense values.  Explicitly initialize to
zero.

diffstat:

 audio/spiralsynth/patches/patch-ak |  13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diffs (17 lines):

diff -r e00aaf33eb68 -r d1a1b813c9f6 audio/spiralsynth/patches/patch-ak
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/spiralsynth/patches/patch-ak        Sun Feb 15 06:00:26 2004 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ak,v 1.1 2004/02/15 06:00:26 ben Exp $
+
+--- SpiralSound/Oscillator.C.orig      2000-11-26 07:52:41.000000000 -0800
++++ SpiralSound/Oscillator.C
+@@ -37,6 +37,8 @@ m_ModAmount(0.01f)
+       m_Note=new int[SpiralInfo::POLY];
+       m_LastFreq=new float[SpiralInfo::POLY];
+       m_Volume=new char[SpiralInfo::POLY];
++      m_FreqModBuf = 0; /* initialize to avoid risk of coredump */
++      m_PulseWidthModBuf = 0; /* initialize to avoid risk of coredump */
+       
+       for (int n=0; n<SpiralInfo::POLY; n++)
+       {



Home | Main Index | Thread Index | Old Index