Ignore:
Timestamp:
Sep 20, 2009, 2:44:23 AM (11 years ago)
Author:
Bruno Cornec
Message:
  • Remove function turn_wildcard_chars_into_literal_chars and replace it with a call to mr_stresc more generic
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mondo/src/mondoarchive/mondoarchive.c

    r2340 r2413  
    238238    if (argc == 3 && !strcmp(argv[1], "wildcards")) {
    239239        g_loglevel = 10;
    240         malloc_string(tmp);
    241         turn_wildcard_chars_into_literal_chars(tmp, argv[2]);
     240        tmp = mr_stresc(argv[2], "[]*?", '\\');
    242241        printf("in=%s; out=%s\n", argv[2], tmp);
    243         paranoid_free(tmp);
     242        mr_free(tmp);
    244243        finish(1);
    245244    }
Note: See TracChangeset for help on using the changeset viewer.