mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 08:48:16 +00:00
refactor: Replace vim_strcat() with xstrlcat().
This commit is contained in:
@@ -1544,8 +1544,8 @@ static int prt_find_resource(char *name, struct prt_ps_resource_S *resource)
|
||||
/* Look for named resource file in runtimepath */
|
||||
STRCPY(buffer, "print");
|
||||
add_pathsep((char *)buffer);
|
||||
vim_strcat(buffer, (char_u *)name, MAXPATHL);
|
||||
vim_strcat(buffer, (char_u *)".ps", MAXPATHL);
|
||||
xstrlcat((char *)buffer, name, MAXPATHL);
|
||||
xstrlcat((char *)buffer, ".ps", MAXPATHL);
|
||||
resource->filename[0] = NUL;
|
||||
retval = (do_in_runtimepath(buffer, 0, prt_resource_name, resource->filename)
|
||||
&& resource->filename[0] != NUL);
|
||||
|
Reference in New Issue
Block a user