diff options
author | Timo Sirainen <cras@irssi.org> | 2002-02-17 14:00:34 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-02-17 14:00:34 +0000 |
commit | 9ebcbffd660b90d79accf133e070d61ddd2a0d16 (patch) | |
tree | 634eb909138dda2877735773b33d76b16ecea246 /src/fe-common | |
parent | c39ce0430f83fec80a89a3788ad800a2e8c35657 (diff) | |
download | irssi-9ebcbffd660b90d79accf133e070d61ddd2a0d16.zip |
"whops" :) ^D<char> as last chars in line made some screen corruption and
maybe even could have crashed
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2497 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common')
-rw-r--r-- | src/fe-common/core/formats.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fe-common/core/formats.c b/src/fe-common/core/formats.c index b4d2e7ed..11a932ed 100644 --- a/src/fe-common/core/formats.c +++ b/src/fe-common/core/formats.c @@ -995,6 +995,9 @@ void format_send_to_gui(TEXT_DEST_REC *dest, const char *text) flags |= GUI_PRINT_FLAG_BOLD; } } + if (ptr[1] == '\0') + break; + ptr++; if (*ptr != FORMAT_COLOR_NOCHANGE) { bgcolor = *ptr-'0'; |