Re-apply r1485848 with an extra fix that prevents the buffer overflow plus is easier to understand.
Re-apply r1485848 with an extra fix that prevents the buffer overflow
plus is easier to understand.

* subversion/libsvn_subr/subst.c
  (translate_chunk): quickly scan for EOL if there is keyword substitution


git-svn-id: f8a4e5e023278da1e04e203c7fe051e3c4285d88@1486058 13f79535-47bb-0310-9956-ffa450edef68

YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion