The number of format specifiers does not match the number of arguments.
ID |
Observation |
Description |
---|---|---|
1 |
Format mismatch |
Place where the format string was used |
#include <stdio.h> extern int x,y; int main(int argc, char **argv) { printf("%s"); // too few arguments: uses a random word on the stack as a string printf("%-2d", x, y); // too many arguments (y is ignored) }
Copyright © 2010, Intel Corporation. All rights reserved.