summaryrefslogtreecommitdiff
path: root/src/digraph.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-05-19 21:08:39 +0000
committerBram Moolenaar <Bram@vim.org>2005-05-19 21:08:39 +0000
commit555b280f28998668c2f2b22df63c5393cfa9a0dd (patch)
treeb57a9e145899b0ac9956da1a4cfbb33a93d6cb4a /src/digraph.c
parent051b782fa0ed834d7b4f80e5f1540d4d96e5f9d7 (diff)
downloadvim-git-555b280f28998668c2f2b22df63c5393cfa9a0dd.tar.gz
updated for version 7.0073v7.0073
Diffstat (limited to 'src/digraph.c')
-rw-r--r--src/digraph.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/digraph.c b/src/digraph.c
index 31d7f3788..06b227ae1 100644
--- a/src/digraph.c
+++ b/src/digraph.c
@@ -2459,7 +2459,7 @@ ex_loadkeymap(eap)
*/
for (i = 0; i < curbuf->b_kmap_ga.ga_len; ++i)
{
- sprintf((char *)buf, "<buffer> %s %s",
+ vim_snprintf((char *)buf, sizeof(buf), "<buffer> %s %s",
((kmap_T *)curbuf->b_kmap_ga.ga_data)[i].from,
((kmap_T *)curbuf->b_kmap_ga.ga_data)[i].to);
(void)do_map(2, buf, LANGMAP, FALSE);
@@ -2492,8 +2492,8 @@ keymap_unload()
/* clear the ":lmap"s */
for (i = 0; i < curbuf->b_kmap_ga.ga_len; ++i)
{
- sprintf((char *)buf, "<buffer> %s",
- ((kmap_T *)curbuf->b_kmap_ga.ga_data)[i].from);
+ vim_snprintf((char *)buf, sizeof(buf), "<buffer> %s",
+ ((kmap_T *)curbuf->b_kmap_ga.ga_data)[i].from);
(void)do_map(1, buf, LANGMAP, FALSE);
}