Changeset 72db971
- Timestamp:
- Jan 29, 2007, 11:02:02 PM (18 years ago)
- Branches:
- master, barnowl_perlaim, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- c18f08d
- Parents:
- 29ebcea
- git-author:
- Nelson Elhage <nelhage@mit.edu> (01/29/07 23:01:58)
- git-committer:
- Nelson Elhage <nelhage@mit.edu> (01/29/07 23:02:02)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
text.c
r1bb1e67 r72db971 368 368 char *owl_text_quote(char *in, char *toquote, char *quotestr) 369 369 { 370 int i, x, r, place ;370 int i, x, r, place, escape; 371 371 int in_len, toquote_len, quotestr_len; 372 372 char *out; … … 377 377 out=owl_malloc((in_len*quotestr_len)+30); 378 378 place=0; 379 escape = 0; 380 for (i=0; i<in_len; i++) { 381 if(strchr(toquote, in[i]) != NULL) 382 escape++; 383 } 384 out = owl_malloc(in_len + quotestr_len*escape+1); 379 385 for (i=0; i<in_len; i++) { 380 386
Note: See TracChangeset
for help on using the changeset viewer.