X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=snprintf.c;h=fcfcbb74885744b7fd67172ae40b3269ddbd94e2;hp=036d904963753302297e945009c4356e3aa01a86;hb=89af1bcd125ce7dfd30acf684a4fdc98c44e36bc;hpb=96d53ff49c308769efbf708e1e65819077cb7af6 diff --git a/snprintf.c b/snprintf.c index 036d904..fcfcbb7 100644 --- a/snprintf.c +++ b/snprintf.c @@ -402,7 +402,7 @@ static void fmtstr (char *buffer, size_t * currlen, size_t maxlen, value = ""; } - for (strln = 0; value[strln]; ++strln); /* mutt_strlen */ + for (strln = 0; value[strln]; ++strln); /* str_len */ padlen = min - strln; if (padlen < 0) padlen = 0; @@ -689,7 +689,7 @@ int vsnprintf (char *str, size_t count, const char *fmt, va_list args) { str[0] = 0; dopr (str, count, fmt, args); - return (mutt_strlen (str)); + return (str_len (str)); } #endif /* !HAVE_VSNPRINTF */ @@ -717,7 +717,7 @@ int snprintf (va_alist) (void) vsnprintf (str, count, fmt, ap); VA_END; - return (mutt_strlen (str)); + return (str_len (str)); } #ifdef TEST_SNPRINTF @@ -768,7 +768,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 (mutt_strcmp (buf1, buf2)) { + if (str_cmp (buf1, buf2)) { printf ("snprintf doesn't match Format: %s\n\tsnprintf = %s\n\tsprintf = %s\n", /* __SPRINTF_CHECKED__ */ fp_fmt[x], buf1, buf2); fail++; @@ -780,7 +780,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 (mutt_strcmp (buf1, buf2)) { + if (str_cmp (buf1, buf2)) { printf ("snprintf doesn't match Format: %s\n\tsnprintf = %s\n\tsprintf = %s\n", /* __SPRINTF_CHECKED__ */ int_fmt[x], buf1, buf2); fail++;