jaehyun pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=0b8734f14d35639f807d72562ad2bba2c6217bb5

commit 0b8734f14d35639f807d72562ad2bba2c6217bb5
Author: Jaehyun Cho <jae_hyun....@samsung.com>
Date:   Wed Feb 17 16:15:40 2016 +0900

    indent: Fix to compare string before '\0'
---
 src/lib/indent.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/indent.c b/src/lib/indent.c
index f0b04d8..15a5681 100644
--- a/src/lib/indent.c
+++ b/src/lib/indent.c
@@ -257,12 +257,12 @@ indent_text_auto_format(indent_data *id EINA_UNUSED,
 
    int tb_cur_pos = 0;
 
-   while (utf8_ptr <= utf8_end)
+   while (utf8_ptr < utf8_end)
      {
         if (*utf8_ptr != ' ' && *utf8_ptr != '\t' &&  *utf8_ptr != '\n' )
           {
              utf8_lexem = utf8_ptr;
-             while (utf8_ptr <= utf8_end)
+             while (utf8_ptr < utf8_end)
                {
                   if (*utf8_ptr == '{' || *utf8_ptr == '}' || *utf8_ptr == ';')
                     {

-- 


Reply via email to