Ticket #409: ticket409.patch

File ticket409.patch, 1.2 KB (added by angel_il, 15 years ago)

fix: typo in const names

  • src/search/regex.c

    diff --git a/src/search/regex.c b/src/search/regex.c
    index 7de8d5b..f3e57e2 100644
    a b mc_search__regex_found_cond_one (mc_search_t * mc_search, mc_search_regex_t * re 
    258258    } 
    259259#else /* HAVE_LIBPCRE */ 
    260260 
    261     if (regexec (regex, search_str->str, MC_SEARCH__NUM_REPL_ARGS, mc_search->regex_match_info, 0)) 
     261    if (regexec (regex, search_str->str, MC_SEARCH__NUM_REPLACE_ARGS, mc_search->regex_match_info, 0)) 
    262262        return COND__NOT_FOUND; 
    263263 
    264     for (mc_search->num_rezults = 0; mc_search->num_rezults < MC_SEARCH__NUM_REPL_ARGS; 
     264    for (mc_search->num_rezults = 0; mc_search->num_rezults < MC_SEARCH__NUM_REPLACE_ARGS; 
    265265         mc_search->num_rezults++) { 
    266266        if (mc_search->regex_match_info[mc_search->num_rezults].rm_eo == 0) 
    267267            break; 
    mc_search__cond_struct_new_init_regex (const char *charset, mc_search_t * mc_sea 
    547547        mc_search_cond->regex_handle = NULL; 
    548548        return; 
    549549    } 
    550     mc_search->regex_match_info = g_new0 (mc_search_matchinfo_t, MC_SEARCH__NUM_REPL_ARGS); 
     550    mc_search->regex_match_info = g_new0 (mc_search_matchinfo_t, MC_SEARCH__NUM_REPLACE_ARGS); 
    551551#endif /* HAVE_LIBPCRE */ 
    552552#endif /* GLIB_CHECK_VERSION (2, 14, 0) */ 
    553553}