summaryrefslogtreecommitdiffstats
path: root/src/proto
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-01-20 20:44:43 +0100
committerBram Moolenaar <Bram@vim.org>2012-01-20 20:44:43 +0100
commitf31b764c23ae9a91cd6119f57aee6ea80ec480d2 (patch)
tree534ff4ba7b47ee9789801b4e7f80fa2fef0e249e /src/proto
parent3ef7cdf0fd040e7247bd395b51b107df0da081ef (diff)
updated for version 7.3.407v7.3.407
Problem: ":12verbose call F()" may duplicate text while trying to truncate. (Thinca) Solution: Only truncate when there is not enough room. Also check the byte length of the buffer.
Diffstat (limited to 'src/proto')
-rw-r--r--src/proto/message.pro2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proto/message.pro b/src/proto/message.pro
index c59a9165f4..a12f1200c7 100644
--- a/src/proto/message.pro
+++ b/src/proto/message.pro
@@ -4,7 +4,7 @@ int verb_msg __ARGS((char_u *s));
int msg_attr __ARGS((char_u *s, int attr));
int msg_attr_keep __ARGS((char_u *s, int attr, int keep));
char_u *msg_strtrunc __ARGS((char_u *s, int force));
-void trunc_string __ARGS((char_u *s, char_u *buf, int room));
+void trunc_string __ARGS((char_u *s, char_u *buf, int room, int buflen));
void reset_last_sourcing __ARGS((void));
void msg_source __ARGS((int attr));
int emsg_not_now __ARGS((void));