Skip to content
Snippets Groups Projects
Commit 559c8d4a authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

streamCopyRecord: check byteorder (bug fix)

parent b56fc362
No related branches found
No related tags found
No related merge requests found
2009-10-23 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* stream_cdf:cdfDefXaxis: bug fix for multi generic grids [report: Uwe Mikolajewicz]
* streamCopyRecord: check byteorder (bug fix) [report: Claas Teichmann]
2009-10-15 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
......
......@@ -423,6 +423,7 @@ void streamCopyRecord(int streamID2, int streamID1)
static char func[] = "streamCopyRecord";
int status = 0;
int filetype = CDI_UNDEFID, filetype1, filetype2;
int byteorder1, byteorder2;
stream_t *streamptr1;
stream_t *streamptr2;
......@@ -434,8 +435,11 @@ void streamCopyRecord(int streamID2, int streamID1)
filetype1 = streamptr1->filetype;
filetype2 = streamptr2->filetype;
byteorder1 = streamptr1->byteorder;
byteorder2 = streamptr2->byteorder;
if ( filetype1 == filetype2 ) filetype = filetype2;
if ( filetype1 == filetype2 &&
byteorder1 == byteorder2 ) filetype = filetype2;
if ( filetype == FILETYPE_GRB )
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment