X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=compat%2Fwinansi.c;h=54fd701cbfb44907b93e6b331bfb91ca80a87a94;hb=d9800351d3386db0c306fde03976d8475d7409a6;hp=cacd82c833a615a9daebbadca36d08647111a677;hpb=4336fdb2efaf77b720f152c06b5ce2aa2e347fb6;p=thirdparty%2Fgit.git diff --git a/compat/winansi.c b/compat/winansi.c index cacd82c833..54fd701cbf 100644 --- a/compat/winansi.c +++ b/compat/winansi.c @@ -546,7 +546,7 @@ static HANDLE swap_osfhnd(int fd, HANDLE new_handle) typedef struct _OBJECT_NAME_INFORMATION { UNICODE_STRING Name; - WCHAR NameBuffer[0]; + WCHAR NameBuffer[FLEX_ARRAY]; } OBJECT_NAME_INFORMATION, *POBJECT_NAME_INFORMATION; #define ObjectNameInformation 1