wok-next diff arj/stuff/patches/custom-printf.patch @ rev 19715

Fix building: pciutils, pcmanfm-legacy, arj
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat May 13 17:25:31 2017 +0300 (2017-05-13)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/arj/stuff/patches/custom-printf.patch	Sat May 13 17:25:31 2017 +0300
     1.3 @@ -0,0 +1,15 @@
     1.4 +Patch by Lubomir Rintel <lkundrak@v3.sk> for arj >= 3.10.22, which disables
     1.5 +the custom printf to avoid conflicting strnlen definition with the glibc
     1.6 +headers. By using custom printf (as in the past), we're completely loosing
     1.7 +all the _FORTIFY_SOURCE printf protections.
     1.8 +
     1.9 +--- arj-3.10.22/fardata.c		2004-04-17 13:39:42.000000000 +0200
    1.10 ++++ arj-3.10.22/fardata.c		2009-04-18 16:23:52.000000000 +0200
    1.11 +@@ -13,7 +13,6 @@
    1.12 + /* ASR fix 02/05/2003: need that regardless of COLOR_OUTPUT to support -jp
    1.13 +    correctly */
    1.14 + #if SFX_LEVEL>=ARJ
    1.15 +- #define CUSTOM_PRINTF
    1.16 +  #define CHUNK_SIZE               512    /* Size of the output block */
    1.17 +  #define CHUNK_THRESHOLD (CHUNK_SIZE-256) /* Safety bound */
    1.18 + #endif