X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fdictionary%2Fformats.c;h=4bc6e3f47767335bba767099bc38a76be1d85c8e;hb=84e4d346b557748b62d43158c1b50f655e357f9f;hp=8658634b364e64edf434243a9997fe315389ed3a;hpb=81fff61a96bece351e381ad3fef8ab1248a952ba;p=pspp diff --git a/src/language/dictionary/formats.c b/src/language/dictionary/formats.c index 8658634b36..4bc6e3f477 100644 --- a/src/language/dictionary/formats.c +++ b/src/language/dictionary/formats.c @@ -26,7 +26,9 @@ #include #include #include +#include #include +#include #include #include #include @@ -87,10 +89,10 @@ internal_cmd_formats (int which) if (!lex_match ('(')) { - msg (SE, _("`(' expected after variable list")); + msg (SE, _("`(' expected after variable list.")); goto fail; } - if (!parse_format_specifier (&f, 0) + if (!parse_format_specifier (&f) || !check_output_specifier (&f, true) || !check_specifier_type (&f, NUMERIC, true)) goto fail;