Yushan_API.c: Fix array subscript out of bounds