summaryrefslogtreecommitdiff
path: root/src/ex_cmds2.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-10-03 18:25:00 +0200
committerBram Moolenaar <Bram@vim.org>2012-10-03 18:25:00 +0200
commite1704bada4554f4edc95ac6be50144dd7b95332b (patch)
treea9e9a1fd34a6ed5ba126b8dfc4ecd45dfedff394 /src/ex_cmds2.c
parentb213da0b5742c6615837436ef4f75a416a534f06 (diff)
downloadvim-git-e1704bada4554f4edc95ac6be50144dd7b95332b.tar.gz
updated for version 7.3.677v7.3.677
Problem: buf_spname() is used inconsistently. Solution: Make the return type a char_u pointer. Check the size of the returned string.
Diffstat (limited to 'src/ex_cmds2.c')
-rw-r--r--src/ex_cmds2.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c
index d3bf04fad..de190e78c 100644
--- a/src/ex_cmds2.c
+++ b/src/ex_cmds2.c
@@ -1688,8 +1688,7 @@ check_changed_any(hidden)
msg_didout = FALSE;
}
if (EMSG2(_("E162: No write since last change for buffer \"%s\""),
- buf_spname(buf) != NULL ? (char_u *)buf_spname(buf) :
- buf->b_fname))
+ buf_spname(buf) != NULL ? buf_spname(buf) : buf->b_fname))
{
save = no_wait_return;
no_wait_return = FALSE;