From 10d2965791c78a23b2e1ca91f293c3d49f852d78 Mon Sep 17 00:00:00 2001 From: pixel Date: Wed, 28 Apr 2004 14:24:13 +0000 Subject: Fixing and updates for MSVC --- lib/cdutils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/cdutils.cpp') 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 #include @@ -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]); -- cgit v1.2.3