Commit 90d917da authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

cgribexlib update

parent b10fd246
2012-??-?? Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
2012-12-11 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* Version 1.5.9 released
* using CGRIBEX library version 1.5.6
2012-12-03 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
......
This diff is collapsed.
......@@ -483,7 +483,7 @@ size_t grbSzip(int filetype, unsigned char *gribbuffer, size_t gribbuffersize)
buffer = (unsigned char *) malloc(buffersize);
/* memcpy(buffer, gribbuffer, gribbuffersize); */
if ( filetype == FILETYPE_GRB )
{
nbytes = gribZip(gribbuffer, (long) gribbuffersize, buffer, (long) buffersize);
......@@ -494,7 +494,7 @@ size_t grbSzip(int filetype, unsigned char *gribbuffer, size_t gribbuffersize)
lszip_warn = 0;
nbytes = gribbuffersize;
}
free(buffer);
return (nbytes);
......@@ -661,7 +661,7 @@ int grbCopyRecord(int streamID2, int streamID1)
nbytes = recsize;
izip = gribGetZip(recsize, gribbuffer, &unzipsize);
if ( izip == 0 )
if ( streamptr2->comptype == COMPRESS_SZIP )
nbytes = grbSzip(filetype, gribbuffer, nbytes);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment