bug fix: record size alignment for NC_USHORT is missing

This commit is contained in:
Wei-keng Liao 2016-11-28 11:50:31 -06:00
parent ab73a57fca
commit 3889617a2a

View File

@ -484,6 +484,7 @@ out :
case NC_CHAR : case NC_CHAR :
case NC_UBYTE : case NC_UBYTE :
case NC_SHORT : case NC_SHORT :
case NC_USHORT :
if( varp->len%4 != 0 ) if( varp->len%4 != 0 )
{ {
varp->len += 4 - varp->len%4; /* round up */ varp->len += 4 - varp->len%4; /* round up */