fix a warnig and an error (found by Sebastioan)
introducing spprintf and vspprintf #mail follows
12345