diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/wee-input.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/wee-input.c b/src/core/wee-input.c index beef72d9d..ad4eb08b6 100644 --- a/src/core/wee-input.c +++ b/src/core/wee-input.c @@ -159,8 +159,11 @@ input_data (struct t_gui_buffer *buffer, const char *data) const char *ptr_data, *ptr_data_for_buffer; int length, char_size, first_command; - if (!buffer || !data || !data[0] || (data[0] == '\r') || (data[0] == '\n')) + if (!buffer || !gui_buffer_valid (buffer) + || !data || !data[0] || (data[0] == '\r') || (data[0] == '\n')) + { return; + } buffer_full_name = strdup (buffer->full_name); if (!buffer_full_name) |