| Server IP : 82.208.35.60 / Your IP : 216.73.216.89 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/archivers/libcabinet/files/ |
Upload File : |
--- cfdblock.cpp.orig 1999-10-24 06:13:29 UTC
+++ cfdblock.cpp
@@ -17,7 +17,7 @@
#ifndef __CFDBLOCK_CPP__
#define __CFDBLOCK_CPP__
-#include <fstream.h>
+#include <fstream>
#include "cftypes.h"
#include "cfdblock.h"
#include "cfheader.h"
@@ -124,7 +124,7 @@ int cabinet_datablock::read(istream& in,
ra_size = cab_header.get_datablock_ra_size();
reserved_area = new byte[ra_size];
- if(in.read(reserved_area, ra_size).bad())
+ if(in.read((char*)reserved_area, ra_size).bad())
{
return (in.fail()) ? READ_ERROR : UNEXPECTED_EOF;
}
@@ -154,7 +154,7 @@ int cabinet_datablock::write(ostream& ou
if(ra_size) // If reserve area, write it
{
- if(out.write(reserved_area, ra_size).fail()) return WRITE_ERROR;
+ if(out.write((char*)reserved_area, ra_size).fail()) return WRITE_ERROR;
}
// write data to stream
// if(out.write(compressed_data, compressed_size).bad()) return WRITE_ERROR;