Removed potential buffer overflow in ali.c by replacing array of