Run it through a debugger, put a breakpoint at the Com_Printf() inside Com_sprintf() and do a backtrace of the stack when it gets hit. That ought to tell you where the error stems from (and if it doesn't, post the backtrace here).