diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/cfuns-c.c | 3 | ||||
-rw-r--r-- | src/lib/edin.c | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/cfuns-c.c b/src/lib/cfuns-c.c index 856e4bcc..11c28691 100644 --- a/src/lib/cfuns-c.c +++ b/src/lib/cfuns-c.c @@ -873,8 +873,7 @@ oa_substr(const char* str, const size_t begin, const size_t end) int len; if (str == NULL || strlen(str) == 0 || - strlen(str) < begin || end >= strlen(str) || - begin > end || begin < 0 || end < 0) + strlen(str) < begin || end >= strlen(str) || begin > end) return NULL; len = (end - begin) + 2; diff --git a/src/lib/edin.c b/src/lib/edin.c index c93e2876..f85a632a 100644 --- a/src/lib/edin.c +++ b/src/lib/edin.c @@ -158,7 +158,7 @@ do_reading(void) if (ttt_read > 0) num_read = num_read + ttt_read; } - if ((in_buff[num_proc + 1] == _LBRACK)) { + if (in_buff[num_proc + 1] == _LBRACK) { /* ESC [ */ |