diff options
Diffstat (limited to 'src/Fl_Simple_Terminal.cxx')
| -rw-r--r-- | src/Fl_Simple_Terminal.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Simple_Terminal.cxx b/src/Fl_Simple_Terminal.cxx index cc9d77082..3d776f2d8 100644 --- a/src/Fl_Simple_Terminal.cxx +++ b/src/Fl_Simple_Terminal.cxx @@ -512,7 +512,7 @@ void Fl_Simple_Terminal::append(const char *s, int len) { // Remove ansi codes and adjust style buffer accordingly. if ( ansi() ) { int nstyles = stable_size_ / STE_SIZE; - if ( len < 0 ) len = strlen(s); + if ( len < 0 ) len = (int)strlen(s); // New text buffer (after ansi codes parsed+removed) char *ntm = (char*)malloc(len+1); // new text memory char *ntp = ntm; |
