Ticket #4103: mc-4103-cid-editdraw.c-fix-copy-paste-error.patch

File mc-4103-cid-editdraw.c-fix-copy-paste-error.patch, 794 bytes (added by and, 20 months ago)
  • src/editor/editdraw.c

    From 9aa44abcf77c646a61cd0b80cf6d88e816367c4d Mon Sep 17 00:00:00 2001
    From: Andreas Mohr <and@gmx.li>
    Date: Tue, 22 Dec 2020 08:55:08 +0000
    Subject: [PATCH] (editdraw.c) fix copy-paste error
    
    (stunning coverity detection)
    
    found by Coverity
    coverity id #32566
    
    Signed-off-by: Andreas Mohr <and@gmx.li>
    ---
     src/editor/editdraw.c | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/editor/editdraw.c b/src/editor/editdraw.c
    index 564e18d6c..248128b68 100644
    a b edit_scroll_screen_over_cursor (WEdit * edit) 
    10931093    { 
    10941094        int n; 
    10951095 
    1096         n = l_extreme + t_extreme; 
     1096        n = l_extreme + r_extreme; 
    10971097        if (n == 0) 
    10981098            n = 1; 
    10991099        l_extreme = (l_extreme * (w->cols - 1)) / n;