[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.4/kdemultimedia/kmix
From:       Christian Esken <esken () kde ! org>
Date:       2005-05-22 11:05:41
Message-ID: 1116759941.482373.13060.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 416716 by esken:

Backport the "off-by-one" fix to KDE_3_4 branch. This might fix some
strange behaviour issues and also some KMix crashes (mostly experienced
with emu10k1 type cards.


 M  +1 -1      branches/KDE/3.4/kdemultimedia/kmix/mixer_alsa9.cpp  


--- branches/KDE/3.4/kdemultimedia/kmix/mixer_alsa9.cpp #416715:416716
@@ -387,7 +387,7 @@
 
     //kdDebug(67100) << "Mixer_ALSA::prepareUpdate() 2\n";
     
-    fds = (struct pollfd*)calloc(count + 1, sizeof(struct pollfd));
+    fds = (struct pollfd*)calloc(count, sizeof(struct pollfd));
     if (fds == NULL) {
 	kdDebug(67100) << "Mixer_ALSA::poll() , calloc() = null" << "\n";
 	return false;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic