Changeset aec79a1


Ignore:
Timestamp:
Jul 19, 2011, 3:29:11 AM (10 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
release-1.8
Children:
25f2e21
Parents:
650415e
git-author:
David Benjamin <davidben@mit.edu> (07/19/11 03:00:28)
git-committer:
David Benjamin <davidben@mit.edu> (07/19/11 03:29:11)
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 raec79a1  
    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.