- Timestamp:
- Feb 11, 2011, 4:31:33 PM (13 years ago)
- Branches:
- master, release-1.10, 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
text.c
r4d24650 r96828e4 53 53 char *out, *out2; 54 54 55 out= owl_malloc(strlen(in)+30);55 out=g_new(char, strlen(in)+30); 56 56 strcpy(out, ""); 57 57 … … 156 156 } 157 157 158 ret = owl_malloc(len + 1);158 ret = g_new(char, len + 1); 159 159 160 160 p = in; … … 281 281 tolen = strlen(to); 282 282 fromlen = strlen(from); 283 out = owl_malloc(outlen);283 out = g_new(char, outlen); 284 284 285 285 while (in[inpos]) { … … 335 335 escape++; 336 336 } 337 out = owl_malloc(in_len + quotestr_len*escape+1);337 out = g_new(char, in_len + quotestr_len*escape+1); 338 338 for (i=0; i<in_len; i++) { 339 339
Note: See TracChangeset
for help on using the changeset viewer.