forked from aniani/vim
updated for version 7.0180
This commit is contained in:
@@ -3583,6 +3583,8 @@ expand_env_esc(srcp, dst, dstlen, esc, startstr)
|
||||
{
|
||||
struct passwd *pw;
|
||||
|
||||
/* Note: memory allocated by getpwnam() is never freed.
|
||||
* Calling endpwent() apparently doesn't help. */
|
||||
pw = getpwnam((char *)dst + 1);
|
||||
if (pw != NULL)
|
||||
var = (char_u *)pw->pw_dir;
|
||||
|
Reference in New Issue
Block a user