X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=snprintf.c;h=43366b40911f87d42a4ab645d2a4403f1e809139;hp=0eac0922a7fd4463825144b5553c3647824ca2ae;hb=1106413431b72d14d6f1208d611c489931ea4499;hpb=841934011451205d8295ac955486f06c317fdf15 diff --git a/snprintf.c b/snprintf.c index 0eac092..43366b4 100644 --- a/snprintf.c +++ b/snprintf.c @@ -47,8 +47,9 @@ #if !defined(HAVE_SNPRINTF) || !defined(HAVE_VSNPRINTF) #include -# include +#include #include +#include "lib/str.h" /* Define this as a fall through, HAVE_STDARG_H is probably already set */ @@ -766,7 +767,7 @@ int main (void) for (y = 0; fp_nums[y] != 0; y++) { snprintf (buf1, sizeof (buf1), fp_fmt[x], fp_nums[y]); sprintf (buf2, fp_fmt[x], fp_nums[y]); - if (strcmp (buf1, buf2)) { + if (mutt_strcmp (buf1, buf2)) { printf ("snprintf doesn't match Format: %s\n\tsnprintf = %s\n\tsprintf = %s\n", /* __SPRINTF_CHECKED__ */ fp_fmt[x], buf1, buf2); fail++; @@ -778,7 +779,7 @@ int main (void) for (y = 0; int_nums[y] != 0; y++) { snprintf (buf1, sizeof (buf1), int_fmt[x], int_nums[y]); sprintf (buf2, int_fmt[x], int_nums[y]); - if (strcmp (buf1, buf2)) { + if (mutt_strcmp (buf1, buf2)) { printf ("snprintf doesn't match Format: %s\n\tsnprintf = %s\n\tsprintf = %s\n", /* __SPRINTF_CHECKED__ */ int_fmt[x], buf1, buf2); fail++;