- added missing include of stdio.h header for sprintf().