mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-24 16:04:40 +08:00
bug fix: record size alignment for NC_USHORT is missing
This commit is contained in:
parent
ab73a57fca
commit
3889617a2a
@ -484,6 +484,7 @@ out :
|
||||
case NC_CHAR :
|
||||
case NC_UBYTE :
|
||||
case NC_SHORT :
|
||||
case NC_USHORT :
|
||||
if( varp->len%4 != 0 )
|
||||
{
|
||||
varp->len += 4 - varp->len%4; /* round up */
|
||||
|
Loading…
Reference in New Issue
Block a user