Changeset 96828e4 for text.c


Ignore:
Timestamp:
Feb 11, 2011, 4:31:33 PM (10 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.8, release-1.9
Children:
35b6eb9
Parents:
9518a85
git-author:
Anders Kaseorg <andersk@mit.edu> (08/27/09 00:51:45)
git-committer:
Anders Kaseorg <andersk@mit.edu> (02/11/11 16:31:33)
Message:
Replace owl_malloc with g_new and g_new0.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: Karl Ramm <kcr@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • text.c

    r4d24650 r96828e4  
    5353  char *out, *out2;
    5454
    55   out=owl_malloc(strlen(in)+30);
     55  out=g_new(char, strlen(in)+30);
    5656  strcpy(out, "");
    5757
     
    156156  }
    157157
    158   ret = owl_malloc(len + 1);
     158  ret = g_new(char, len + 1);
    159159
    160160  p = in;
     
    281281  tolen  = strlen(to);
    282282  fromlen  = strlen(from);
    283   out = owl_malloc(outlen);
     283  out = g_new(char, outlen);
    284284
    285285  while (in[inpos]) {
     
    335335      escape++;
    336336  }
    337   out = owl_malloc(in_len + quotestr_len*escape+1);
     337  out = g_new(char, in_len + quotestr_len*escape+1);
    338338  for (i=0; i<in_len; i++) {
    339339
Note: See TracChangeset for help on using the changeset viewer.