X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=sort.c;h=b932ab12eda0c4eca2c596b7a0dd21524bebf49a;hp=52f4dffe19db18b4fd468b3ac62e5cb7c4c95162;hb=0c12d960399d14b4143b2bb91a96bdaca64e4c56;hpb=7f7a0be369840b290248e5b0302beb447fa1b3cd diff --git a/sort.c b/sort.c index 52f4dff..b932ab1 100644 --- a/sort.c +++ b/sort.c @@ -215,13 +215,13 @@ int compare_spam (const void *a, const void *b) /* If either aptr or bptr is equal to data, there is no numeric */ /* value for that spam attribute. In this case, compare lexically. */ if ((aptr == (*ppa)->env->spam->data) || (bptr == (*ppb)->env->spam->data)) - return (SORTCODE (str_cmp (aptr, bptr))); + return (SORTCODE (m_strcmp(aptr, bptr))); /* Otherwise, we have numeric value for both attrs. If these values */ /* are equal, then we first fall back upon string comparison, then */ /* upon auxiliary sort. */ if (result == 0) { - result = str_cmp (aptr, bptr); + result = m_strcmp(aptr, bptr); if (result == 0) AUXSORT (result, a, b); }