Changeset fa180a3


Ignore:
Timestamp:
Jul 19, 2011, 3:13:06 AM (10 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.9
Children:
5787ccc, 837bd81, 9ba51c2
Parents:
6f7d4f6
git-author:
David Benjamin <davidben@mit.edu> (07/19/11 03:00:28)
git-committer:
David Benjamin <davidben@mit.edu> (07/19/11 03:13:06)
Message:
Don't stomp over past what owl_text_indent returns

Otherwise we may eat some malloc book-keeping structures, experience
some slight turbulence, and explode.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • style.c

    rd4927a7 rfa180a3  
    6767  indent = owl_text_indent(body, OWL_TAB);
    6868  curlen = strlen(indent);
    69   if (curlen==0 || indent[curlen-1] != '\n') {
    70     indent[curlen] = '\n';
    71     indent[curlen+1] = '\0';
     69  if (curlen == 0 || indent[curlen-1] != '\n') {
     70    char *tmp = indent;
     71    indent = g_strconcat(tmp, "\n", NULL);
     72    g_free(tmp);
    7273  }
    7374
Note: See TracChangeset for help on using the changeset viewer.