diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2011-05-30 23:33:47 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2011-05-30 23:33:47 (GMT) |
| commit | 03a048afe548b4fcbf281b5e3cb593f006c1d087 (patch) | |
| tree | 0550394b7f27dad037d43ce0ebcc293e560f6b45 /src/interface.c | |
| parent | 7a875dd846ba7f28e54350e5f3b9d8836b7d069d (diff) | |
| download | powder-03a048afe548b4fcbf281b5e3cb593f006c1d087.zip powder-03a048afe548b4fcbf281b5e3cb593f006c1d087.tar.gz | |
Add calm blue text colour, buffer overflow fix for richtext
Diffstat (limited to 'src/interface.c')
| -rw-r--r-- | src/interface.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/interface.c b/src/interface.c index ec97c94..465d58e 100644 --- a/src/interface.c +++ b/src/interface.c @@ -551,6 +551,8 @@ int markup_getregion(char *text, char *action, char *data, char *atext){ void ui_richtext_settext(char *text, ui_richtext *ed) { int pos = 0, action = 0, ppos = 0, ipos = 0; + memset(ed->printstr, 0, 512); + memset(ed->str, 0, 512); strcpy(ed->str, text); //strcpy(ed->printstr, text); for(action = 0; action < 6; action++){ |
