nadc_tools: fixed potential out-of-bounds in scia_lv1_patch_mds.c