Permalink
Browse files

fix off-by-one memcpy regression

  • Loading branch information...
1 parent 1c03103 commit 5cb9fd8144492d05044d39db6b3ae91f78f4fa7e @pkarman pkarman committed Mar 19, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 search-tools.c
View
2 search-tools.c
@@ -878,7 +878,7 @@ static SV *st_escape_xml(char *s) {
j += 5;
}
else if (s[i] == '\'') {
- memcpy(&SvPVX(x)[j], "'", 6);
+ memcpy(&SvPVX(x)[j], "'", 5);
j += 5;
}
else

0 comments on commit 5cb9fd8

Please sign in to comment.