Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
90d917da
Commit
90d917da
authored
Dec 04, 2012
by
Uwe Schulzweida
Browse files
cgribexlib update
parent
b10fd246
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
90d917da
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>
...
...
src/cgribexlib.c
View file @
90d917da
This diff is collapsed.
Click to expand it.
src/stream_grb.c
View file @
90d917da
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment