× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
--
[ Picked text/plain from multipart/alternative ]
I've been trying to get zlib to work on my AS/400. I'm using an addon (from
http://homepage1.nifty.com/uzaemon/ <http://homepage1.nifty.com/uzaemon/> )
which allows me to just handle ZIP files. I've managed to get the
compression to work, but the miniunz (mini unzip) program will not work
correctly. I was wondering if anyone else has attempted to use this and had
any problems.

Whenever I run miniunz then I get a "Pointer not set for location
referenced." message on the job log. I've tracked this down to the following
piece of code in "unzip.c":

if (fseek(pfile_in_zip_read_info->file,
file_in_zip_read_info->pos_in_zipfile +
pfile_in_zip_read_info->byte_before_the_zipfile,SEEK_SET)!=0)
return UNZ_ERRNO;

I've tried patching this code to:

if (fseek(fin, 0, SEEK_SET) != 0)
            return UNZ_ERRNO;

But I still get the error. I've also made fin a global variable and ensured
that it never gets closed once it has opened. However, if I just comment out
this line then the following "fread" fails in the same way. It's definitely
the FILE* that's causing the problem since I can replace it with stdin and
no get any problems (other than the obvious).

It's driving me insane so any help would be greatfully received :-)

Steve.


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.