3 more things found during analysis.

One array bounds issue.
One memory leak.
One improper format sign.