diff options
Diffstat (limited to 'src/os_win32.c')
-rw-r--r-- | src/os_win32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_win32.c b/src/os_win32.c index 1bd3d4aec..960943c94 100644 --- a/src/os_win32.c +++ b/src/os_win32.c @@ -2378,7 +2378,7 @@ mch_get_user_name( char_u *s, int len) { - char szUserName[MAX_COMPUTERNAME_LENGTH + 1]; + char szUserName[256 + 1]; /* UNLEN is 256 */ DWORD cch = sizeof szUserName; if (GetUserName(szUserName, &cch)) |