progs/util: Byte swap individual members of struct _rawImageRec.
This commit is contained in:
parent
51f52edaf1
commit
bc0509bba8
|
@ -117,7 +117,12 @@ static rawImageRec *RawImageOpen(const char *fileName)
|
|||
fread(raw, 1, 12, raw->file);
|
||||
|
||||
if (swapFlag) {
|
||||
ConvertShort(&raw->imagic, 6);
|
||||
ConvertShort(&raw->imagic, 1);
|
||||
ConvertShort(&raw->type, 1);
|
||||
ConvertShort(&raw->dim, 1);
|
||||
ConvertShort(&raw->sizeX, 1);
|
||||
ConvertShort(&raw->sizeY, 1);
|
||||
ConvertShort(&raw->sizeZ, 1);
|
||||
}
|
||||
|
||||
raw->tmp = (unsigned char *)malloc(raw->sizeX*256);
|
||||
|
|
Loading…
Reference in New Issue