patch-libsurf-webext.c - pkgsrc-localpatches - leot's pkgsrc LOCALPATCHES
 (HTM) hg clone https://bitbucket.org/iamleot/pkgsrc-localpatches
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
       patch-libsurf-webext.c
       ---
            1 $NetBSD$
            2 
            3 Fix negative values in readpipe()
            4 
            5 --- libsurf-webext.c.orig       2019-06-12 11:50:12.000000000 +0000
            6 +++ libsurf-webext.c
            7 @@ -91,14 +91,14 @@ readpipe(GIOChannel *s, GIOCondition c, 
            8                         return TRUE;
            9                 ww = webkit_dom_dom_window_get_inner_width(view);
           10                 webkit_dom_dom_window_scroll_by(view,
           11 -                                               (ww / 100) * msg[3], 0);
           12 +                                               (ww / 100) * (signed char)msg[3], 0);
           13                 break;
           14         case 'v':
           15                 if (msgsz != 4)
           16                         return TRUE;
           17                 wh = webkit_dom_dom_window_get_inner_height(view);
           18                 webkit_dom_dom_window_scroll_by(view,
           19 -                                               0, (wh / 100) * msg[3]);
           20 +                                               0, (wh / 100) * (signed char)msg[3]);
           21                 break;
           22         }
           23