Log Message: Added a patch that makes the declaration of toupper() visible and fixes an out-of-bounds error.