The ' '-flag (space) is allowed for signed conversions.
authorChristoph Mallon <christoph.mallon@gmx.de>
Mon, 10 Dec 2007 23:01:36 +0000 (23:01 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Mon, 10 Dec 2007 23:01:36 +0000 (23:01 +0000)
[r18666]

format_check.c

index 602775d..37ffe48 100644 (file)
@@ -229,7 +229,7 @@ break_fmt_flags:
                                                warn_invalid_length_modifier(pos, fmt_mod, *fmt);
                                                break;
                                }
-                               allowed_flags = FMT_FLAG_MINUS | FMT_FLAG_PLUS | FMT_FLAG_ZERO;
+                               allowed_flags = FMT_FLAG_MINUS | FMT_FLAG_SPACE | FMT_FLAG_PLUS | FMT_FLAG_ZERO;
                                break;
 
                        case 'o':
@@ -275,7 +275,7 @@ eval_fmt_mod_unsigned:
                                                warn_invalid_length_modifier(pos, fmt_mod, *fmt);
                                                break;
                                }
-                               allowed_flags = FMT_FLAG_MINUS | FMT_FLAG_PLUS | FMT_FLAG_HASH | FMT_FLAG_ZERO;
+                               allowed_flags = FMT_FLAG_MINUS | FMT_FLAG_SPACE | FMT_FLAG_PLUS | FMT_FLAG_HASH | FMT_FLAG_ZERO;
                                break;
 
                        case 'C':