From: Jonathan Nieder Date: Tue, 23 Nov 2010 17:42:16 GMT Subject: Re: [RFC PATCH 2/6] msvc: opendir: allocate enough memory Message-ID: <20101123174215.GC12113@burratino> In-Reply-To: <1290533444-3404-3-git-send-email-kusmabite@gmail.com> Erik Faye-Lund wrote: > --- a/compat/msvc.c > +++ b/compat/msvc.c > @@ -5,12 +5,11 @@ > > DIR *opendir(const char *name) > { > - int len; > + int len = strlen(p->dd_name); > DIR *p; Does this work?