summaryrefslogtreecommitdiff
path: root/lib/cdutils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cdutils.cpp')
-rw-r--r--lib/cdutils.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/cdutils.cpp b/lib/cdutils.cpp
index 736f9ff..3ecea36 100644
--- a/lib/cdutils.cpp
+++ b/lib/cdutils.cpp
@@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: cdutils.cpp,v 1.25 2004-04-27 17:53:42 pixel Exp $ */
+/* $Id: cdutils.cpp,v 1.26 2004-04-28 14:24:19 pixel Exp $ */
#include <stdio.h>
#include <string.h>
@@ -621,9 +621,9 @@ int cdutils::show_pt_infos() {
return 0;
}
- buffer = (Byte *) malloc(ptl);
+ buffer = (Byte *) malloc(ptl + 2);
read_datas(buffer, ptl, GUESS, !pt1 ? pt2 : pt1);
-
+
printm(M_BARE, "node^paren@sector : name\n");
for (ptr = 0, i = 1; buffer[ptr]; ptr += ptr & 1, i++) {
strncpy(pbuf, (char *) &(buffer[8 + ptr]), buffer[ptr]);