summaryrefslogtreecommitdiff
path: root/win32/win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 24699be9cf..6f0133b3dc 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -2456,7 +2456,7 @@ int
rb_w32_stat(const char *path, struct stat *st)
{
const char *p;
- char *buf1 = ALLOCA_N(char, strlen(path) + 1);
+ char *buf1 = ALLOCA_N(char, strlen(path) + 2);
char *buf2 = ALLOCA_N(char, MAXPATHLEN);
char *s;
int len;