off by one
This commit is contained in:
+1
-2
@@ -343,8 +343,7 @@ void *thread_btm(){
|
||||
pthread_cond_wait(&cond_btm, &mutex_btm);
|
||||
|
||||
if (buffer_width != terminal_width) {
|
||||
buffer_width = terminal_width;
|
||||
if (terminal_width < 10) { buffer_width = 10; }
|
||||
buffer_width = (terminal_width > 10) ? terminal_width : 11;
|
||||
|
||||
free(btm_buffer);
|
||||
btm_buffer = malloc(buffer_width+1);
|
||||
|
||||
Reference in New Issue
Block a user