Update acism.c

LIKELY but UNTESTED to fix for problem Beely Bones noted for overlapping partial matches.