diff --git a/glib/gnulib/gl_cv_func_printf_directive_f/meson.build b/glib/gnulib/gl_cv_func_printf_directive_f/meson.build index afde78bf8..5137e98b1 100644 --- a/glib/gnulib/gl_cv_func_printf_directive_f/meson.build +++ b/glib/gnulib/gl_cv_func_printf_directive_f/meson.build @@ -15,7 +15,7 @@ static double zero = 0.0; int main () { int result = 0; - if (sprintf (buf, "%F %d", 1234567.0, 33, 44, 55) < 0 + if (sprintf (buf, "%F %d", 1234567.0, 33) < 0 || strcmp (buf, "1234567.000000 33") != 0) result |= 1; if (sprintf (buf, "%F", 1.0 / zero) < 0 diff --git a/glib/gnulib/gl_cv_func_printf_flag_zero/meson.build b/glib/gnulib/gl_cv_func_printf_flag_zero/meson.build index 2cb00a8e5..eea5dbb70 100644 --- a/glib/gnulib/gl_cv_func_printf_flag_zero/meson.build +++ b/glib/gnulib/gl_cv_func_printf_flag_zero/meson.build @@ -15,7 +15,7 @@ static char buf[100]; static double zero = 0.0; int main () { - if (sprintf (buf, "%010f", 1.0 / zero, 33, 44, 55) < 0 + if (sprintf (buf, "%010f", 1.0 / zero) < 0 || (strcmp (buf, " inf") != 0 && strcmp (buf, " infinity") != 0)) return 1; diff --git a/glib/gnulib/gl_cv_func_printf_long_double/meson.build b/glib/gnulib/gl_cv_func_printf_long_double/meson.build index 3d0e01934..2659ca39a 100644 --- a/glib/gnulib/gl_cv_func_printf_long_double/meson.build +++ b/glib/gnulib/gl_cv_func_printf_long_double/meson.build @@ -15,15 +15,15 @@ int main () { int result = 0; buf[0] = '\0'; - if (sprintf (buf, "%Lf %d", 1.75L, 33, 44, 55) < 0 + if (sprintf (buf, "%Lf %d", 1.75L, 33) < 0 || strcmp (buf, "1.750000 33") != 0) result |= 1; buf[0] = '\0'; - if (sprintf (buf, "%Le %d", 1.75L, 33, 44, 55) < 0 + if (sprintf (buf, "%Le %d", 1.75L, 33) < 0 || strcmp (buf, "1.750000e+00 33") != 0) result |= 2; buf[0] = '\0'; - if (sprintf (buf, "%Lg %d", 1.75L, 33, 44, 55) < 0 + if (sprintf (buf, "%Lg %d", 1.75L, 33) < 0 || strcmp (buf, "1.75 33") != 0) result |= 4; return result;