X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib%2Frx.c;h=0158f16e9c0ce40dfcf908ea374c3dbee9035380;hp=168a3fe8ecbcc3d5582e40d24a766de5d7f2a125;hb=0f44dc85fc1280372ffab911d701e703d803fb4b;hpb=1106413431b72d14d6f1208d611c489931ea4499 diff --git a/lib/rx.c b/lib/rx.c index 168a3fe..0158f16 100644 --- a/lib/rx.c +++ b/lib/rx.c @@ -32,7 +32,7 @@ void rx_free (rx_t** p) { } int rx_compare (const rx_t* r1, const rx_t* r2) { - return (mutt_strcmp (r1->pattern, r2->pattern)); + return (safe_strcmp (r1->pattern, r2->pattern)); } int rx_list_match (list2_t* l, const char* pat) { @@ -50,7 +50,7 @@ int rx_lookup (list2_t* l, const char* pat) { if (!pat || !*pat || list_empty(l)) return (-1); for (i = 0; i < l->length; i++) - if (mutt_strcmp (((rx_t*) l->data[i])->pattern, pat) == 0) + if (safe_strcmp (((rx_t*) l->data[i])->pattern, pat) == 0) return (i); return (-1); }