repoforge/rpms — pull request #144 by tgc (2012-04-13 18:56:55+00:00)
Title: arj: Fix the use of a private strnlen

This adds a patch to fix this build error encountered on el6:
fardata.c: At top level:
fardata.c:193: error: conflicting types for 'strnlen'
/usr/include/string.h:406: note: previous declaration of 'strnlen' was here

Reviewing the code it seemed to try and replace strnlen with a private version but doing so in an unsafe way, relying on the linker to pick the right version.
The patch explicitly replaces strnlen with the private version when requested by the CUSTOM_PRINTF define.