Ignore:
Timestamp:
May 20, 2009, 6:46:53 PM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 branch to 3.2.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.2.x/source/lib/util_str.c

    r141 r204  
    20072007bool str_list_substitute(char **list, const char *pattern, const char *insert)
    20082008{
     2009        TALLOC_CTX *ctx = list;
    20092010        char *p, *s, *t;
    20102011        ssize_t ls, lp, li, ld, i, d;
     
    20292030                        d = p -t;
    20302031                        if (ld) {
    2031                                 t = (char *) SMB_MALLOC(ls +ld +1);
     2032                                t = TALLOC_ARRAY(ctx, char, ls +ld +1);
    20322033                                if (!t) {
    20332034                                        DEBUG(0,("str_list_substitute: "
     
    20372038                                memcpy(t, *list, d);
    20382039                                memcpy(t +d +li, p +lp, ls -d -lp +1);
    2039                                 SAFE_FREE(*list);
     2040                                TALLOC_FREE(*list);
    20402041                                *list = t;
    20412042                                ls += ld;
Note: See TracChangeset for help on using the changeset viewer.