Compartilhar via


PREfast Warning 64 (Windows CE 5.0)

Send Feedback

64 - Format string mismatch.
Additional Information: Missing integer argument to <function> corresponding to conversion specifier <number>.

This warning indicates that not enough arguments are being provided to match a format string; all missing arguments are integers.

This defect can lead to incorrect output, although it is not likely to lead to a crash.

This warning is often reported because of subtle errors in format strings, such as extra embedded spaces or unescaped percent signs. If the warning appears to be incorrect, verify your format string.

PREfast interprets format strings based on the implementations in the C run-time library that is included with Visual C++ .NET 2002.

Example

Defective Source

char buff[5];
sprintf(buff,
        "%s %d",
        string);

Corrected Source

char buff[5];
sprintf(buff,
        "%s %d",
        string,
        strlen(string));

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.