summaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 420b5ea914..f925129834 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -3176,7 +3176,7 @@ maketitle()
/* format: "fname + (path) (1 of 2) - VIM" */
if (curbuf->b_fname == NULL)
- STRCPY(buf, _("[No Name]"));
+ vim_strncpy(buf, (char_u *)_("[No Name]"), IOSIZE - 100);
else
{
p = transstr(gettail(curbuf->b_fname));
@@ -3232,7 +3232,7 @@ maketitle()
if (serverName != NULL)
{
STRCAT(buf, " - ");
- STRCAT(buf, serverName);
+ vim_strcat(buf, serverName, IOSIZE);
}
else
#endif