diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2018-03-06 20:24:07 +0300 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2018-03-07 12:54:58 +0300 |
commit | bebafc42ab6199e86d4c2c901fac8d091bfffef0 (patch) | |
tree | f3961879845e89688c6628dccf1a3c9cd3ebb9b3 /utils | |
parent | 7e9fef8a6ff35c63f9217fcc618d77f660e45245 (diff) |
some fixes
Diffstat (limited to 'utils')
-rw-r--r-- | utils/mir_buffer.h | 8 |
1 files changed, 1 insertions, 7 deletions
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<T>(&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) |