link_alt_odb_entry: fix read over array bounds reported by valgrind