[pulseaudio-commits] r2019 - /trunk/src/pulsecore/core-util.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Sun Nov 4 06:11:54 PST 2007


Author: lennart
Date: Sun Nov  4 15:11:53 2007
New Revision: 2019

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2019&root=pulseaudio&view=rev
Log:
Properly terminate pa_readlink() strings. Patch from Sjoerd Simons. Closes #149

Modified:
    trunk/src/pulsecore/core-util.c

Modified: trunk/src/pulsecore/core-util.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/core-util.c?rev=2019&root=pulseaudio&r1=2018&r2=2019&view=diff
==============================================================================
--- trunk/src/pulsecore/core-util.c (original)
+++ trunk/src/pulsecore/core-util.c Sun Nov  4 15:11:53 2007
@@ -1562,7 +1562,7 @@
         }
 
         if ((size_t) n < l-1) {
-            c[l-1] = 0;
+            c[n] = 0;
             return c;
         }
 




More information about the pulseaudio-commits mailing list