Correct expected type in check_scanf_format().
authorChristoph Mallon <christoph.mallon@gmx.de>
Fri, 18 May 2012 20:59:28 +0000 (22:59 +0200)
committerChristoph Mallon <christoph.mallon@gmx.de>
Sat, 19 May 2012 08:10:36 +0000 (10:10 +0200)
The listed types must be the pointed-to types.

format_check.c

index 5580d91..e300893 100644 (file)
@@ -843,7 +843,7 @@ check_c_width:
                                warn_invalid_length_modifier(pos, fmt_mod, fmt);
                                goto next_arg;
                        }
-                       expected_type = type_void_ptr;
+                       expected_type = type_void;
                        break;
 
                case 'n': {