From bebafc42ab6199e86d4c2c901fac8d091bfffef0 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Tue, 6 Mar 2018 20:24:07 +0300 Subject: some fixes --- utils/mir_buffer.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'utils') diff --git a/utils/mir_buffer.h b/utils/mir_buffer.h index fae75e2d08..9e64474fd3 100644 --- a/utils/mir_buffer.h +++ b/utils/mir_buffer.h @@ -241,8 +241,6 @@ class Buffer va_list arg; va_start(arg, app); total = __bvsnprintf(&str[len], size - len - 1, app, arg); //!!!!!!!!!!!! - if (total < 0) - total = size - len - 1; len += total; pack(); } @@ -251,8 +249,6 @@ class Buffer { if (pos > len) pos = len; - if (pos < 0) - pos = 0; if (appLen == -1) appLen = __blen(app); @@ -271,9 +267,7 @@ class Buffer { if (start > len) start = len; - if (start < 0) - start = 0; - + if (end > len) end = len; if (end < start) -- cgit v1.2.3