# HG changeset patch # User Bram Moolenaar # Date 1262796818 -3600 # Node ID 66b1822ba176a2f7d7e2878b2907af6d86e5b5c8 # Parent 875230a0a1bfc85ccd8f9043caaf8651dca5ea6a updated for version 7.2.326 diff --git a/src/misc1.c b/src/misc1.c --- a/src/misc1.c +++ b/src/misc1.c @@ -3470,7 +3470,9 @@ init_homedir() homedrive = mch_getenv((char_u *)"HOMEDRIVE"); homepath = mch_getenv((char_u *)"HOMEPATH"); - if (homedrive != NULL && homepath != NULL + if (homepath == NULL || *homepath == NUL) + homepath = "\\"; + if (homedrive != NULL && STRLEN(homedrive) + STRLEN(homepath) < MAXPATHL) { sprintf((char *)NameBuff, "%s%s", homedrive, homepath); diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -682,6 +682,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 326, +/**/ 325, /**/ 324,