diff options
author | pixel <pixel> | 2004-04-28 14:24:13 +0000 |
---|---|---|
committer | pixel <pixel> | 2004-04-28 14:24:13 +0000 |
commit | 10d2965791c78a23b2e1ca91f293c3d49f852d78 (patch) | |
tree | 53517f9e0aeb449c98577ffede8ac25ca4f9d8b0 /lib | |
parent | cdad34d7c341f712a9d883b421f832e89f226879 (diff) |
Fixing and updates for MSVC
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cdutils.cpp | 6 |
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]); |