From f9e740af36b44a1c9e834dc8fff08fba8fb1b13f Mon Sep 17 00:00:00 2001 From: Fritz Elfert Date: Sun, 14 Jul 2002 06:35:33 +0000 Subject: Applied patches from debian bug #104967 (not yet tested) --- lib/rfsv32.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/rfsv32.cc') diff --git a/lib/rfsv32.cc b/lib/rfsv32.cc index da9c6e0..ae12711 100644 --- a/lib/rfsv32.cc +++ b/lib/rfsv32.cc @@ -38,6 +38,8 @@ #include "bufferarray.h" #include "plpdirent.h" +using namespace std; + rfsv32::rfsv32(ppsocket * _skt) { skt = _skt; @@ -494,7 +496,7 @@ copyFromPsion(const char *from, const char *to, void *ptr, cpCallback_t cb) unsigned char *buff = new unsigned char[RFSV_SENDLEN]; do { if ((res = fread(handle, buff, RFSV_SENDLEN, len)) == E_PSI_GEN_NONE) { - op.write(buff, len); + op.write((char *)buff, len); total += len; if (cb && !cb(ptr, total)) res = E_PSI_FILE_CANCEL; @@ -549,7 +551,7 @@ copyToPsion(const char *from, const char *to, void *ptr, cpCallback_t cb) u_int32_t total = 0; while (ip && !ip.eof() && (res == E_PSI_GEN_NONE)) { u_int32_t len; - ip.read(buff, RFSV_SENDLEN); + ip.read((char *)buff, RFSV_SENDLEN); if ((res = fwrite(handle, buff, ip.gcount(), len)) == E_PSI_GEN_NONE) { total += len; if (cb && !cb(ptr, total)) -- cgit v1.2.3