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.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.