mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
updated for version 7.3.160
Problem: Unsafe string copying. Solution: Use vim_strncpy() instead of strcpy(). Use vim_strcat() instead of strcat().
This commit is contained in:
@@ -3914,14 +3914,12 @@ print_save_msg(buf, nchars)
|
||||
}
|
||||
else
|
||||
{
|
||||
char_u ebuf[BUFSIZ];
|
||||
char_u msgbuf[IOSIZE];
|
||||
|
||||
STRCPY(ebuf, (char_u *)_("E505: "));
|
||||
STRCAT(ebuf, IObuff);
|
||||
STRCAT(ebuf, (char_u *)_("is read-only (add ! to override)"));
|
||||
STRCPY(IObuff, ebuf);
|
||||
nbdebug((" %s\n", ebuf ));
|
||||
emsg(IObuff);
|
||||
vim_snprintf((char *)msgbuf, IOSIZE,
|
||||
_("E505: %s is read-only (add ! to override)"), IObuff);
|
||||
nbdebug((" %s\n", msgbuf));
|
||||
emsg(msgbuf);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user