Mercurial > vim
changeset 1297:e2680bc6a180 v7.1.011
updated for version 7.1-011
author | vimboss |
---|---|
date | Tue, 19 Jun 2007 18:27:18 +0000 |
parents | 86079b930b3e |
children | f4c7b5da017a |
files | src/main.c src/version.c |
diffstat | 2 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main.c +++ b/src/main.c @@ -1360,8 +1360,7 @@ init_locale() p = vim_getenv((char_u *)"VIMRUNTIME", &mustfree); if (p != NULL && *p != NUL) { - STRCPY(NameBuff, p); - STRCAT(NameBuff, "/lang"); + vim_snprintf((char *)NameBuff, MAXPATHL, "%s/lang", p); bindtextdomain(VIMPACKAGE, (char *)NameBuff); } if (mustfree)