[PATCH 6.6 19/86] Input: pegasus-notetaker - fix potential out-of-bounds access