author | Brandon Casey <drafnel@gmail.com> | |
Thu, 9 Sep 2010 19:02:46 +0000 (14:02 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 10 Sep 2010 00:18:29 +0000 (17:18 -0700) | ||
commit | 1b6ecbad3511b1aaa65172ef8b520dd3b5141614 | |
tree | f4cd98e11ea7333bc3f555e831166d83cb3f52de | tree | snapshot |
parent | ef5644ea6ecec4ee6d6254612af2ed58499ac2fe | commit | diff |
xdiff-interface.c: always trim trailing space from xfuncname matches
Generally, trailing space is removed from the string matched by the
xfuncname patterns. The exception is when the matched string exceeds the
length of the fixed-size buffer that it will be copied in to. But, a
string that exceeds the buffer can still contain trailing space in the
portion of the string that will be copied into the buffer. So, simplify
this code slightly, and just perform the trailing space removal always.
Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Generally, trailing space is removed from the string matched by the
xfuncname patterns. The exception is when the matched string exceeds the
length of the fixed-size buffer that it will be copied in to. But, a
string that exceeds the buffer can still contain trailing space in the
portion of the string that will be copied into the buffer. So, simplify
this code slightly, and just perform the trailing space removal always.
Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
xdiff-interface.c | diff | blob | history |