Fix ticket #4900

Hello,

This patch adds support for parameter specification in scanf/printf format strings, which fixes the ticket. Thanks to consider pulling.

Best regards,
  Simon