Mercurial > vim
comparison src/ex_docmd.c @ 416:3da34f87c760
updated for version 7.0109
author | vimboss |
---|---|
date | Mon, 18 Jul 2005 21:40:44 +0000 |
parents | aa550d9d2403 |
children | 9595cf1d80a7 |
comparison
equal
deleted
inserted
replaced
415:165c628aa9fc | 416:3da34f87c760 |
---|---|
7284 | 7284 |
7285 p = mch_getenv((char_u *)"SYS$LOGIN"); | 7285 p = mch_getenv((char_u *)"SYS$LOGIN"); |
7286 if (p == NULL || *p == NUL) /* empty is the same as not set */ | 7286 if (p == NULL || *p == NUL) /* empty is the same as not set */ |
7287 NameBuff[0] = NUL; | 7287 NameBuff[0] = NUL; |
7288 else | 7288 else |
7289 STRNCPY(NameBuff, p, MAXPATHL); | 7289 vim_strncpy(NameBuff, p, MAXPATHL - 1); |
7290 # else | 7290 # else |
7291 expand_env((char_u *)"$HOME", NameBuff, MAXPATHL); | 7291 expand_env((char_u *)"$HOME", NameBuff, MAXPATHL); |
7292 # endif | 7292 # endif |
7293 new_dir = NameBuff; | 7293 new_dir = NameBuff; |
7294 } | 7294 } |