Blame SOURCES/0001-patch-8.2.3669-buffer-overflow-with-long-help-argume.patch
|
|
07ee2e |
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
|
|
|
07ee2e |
index 1827fec..e69fbd3 100644
|
|
|
07ee2e |
--- a/src/ex_cmds.c
|
|
|
07ee2e |
+++ b/src/ex_cmds.c
|
|
|
07ee2e |
@@ -6537,8 +6537,7 @@ find_help_tags(
|
|
|
07ee2e |
|| (vim_strchr((char_u *)"%_z@", arg[1]) != NULL
|
|
|
07ee2e |
&& arg[2] != NUL)))
|
|
|
07ee2e |
{
|
|
|
07ee2e |
- STRCPY(d, "/\\\\");
|
|
|
07ee2e |
- STRCPY(d + 3, arg + 1);
|
|
|
07ee2e |
+ vim_snprintf((char *)d, IOSIZE, "/\\\\%s", arg + 1);
|
|
|
07ee2e |
/* Check for "/\\_$", should be "/\\_\$" */
|
|
|
07ee2e |
if (d[3] == '_' && d[4] == '$')
|
|
|
07ee2e |
STRCPY(d + 4, "\\$");
|