Ticket #3698: Fix-mcedit-codejump-etags-filenames-parsing.patch

File Fix-mcedit-codejump-etags-filenames-parsing.patch, 612 bytes (added by rimf, 2 years ago)
  • src/editor/etags.c

    Fix ticket #3698 - Fix mcedit codejump (etags filenames parsing)
    
    Signed-off-by: Roman Mikhayloff <rimf@inbox.ru>
    
    diff --git a/src/editor/etags.c b/src/editor/etags.c
    index 4f14169..9bdb0d8 100644
    a b etags_set_definition_hash (const char *tagfile, const char *start_path, 
    214214 
    215215                pos = strcspn (buf, ","); 
    216216                g_free (filename); 
    217                 filename = g_strndup (buf, pos + 1); 
     217                filename = g_strndup (buf, pos); 
    218218                state = in_define; 
    219219                break; 
    220220            }