]> git.sesse.net Git - vlc/commitdiff
direct3d11: give enough room for the \0 in the string
authorSteve Lhomme <robUx4@videolabs.io>
Mon, 23 Mar 2015 09:28:52 +0000 (10:28 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 23 Mar 2015 10:56:11 +0000 (11:56 +0100)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/video_output/msw/direct3d11.c

index 18552ee624dae5bc879c7883718a1f8c82306f0b..b673e057c1fc3ba2a9e769dc7ab6d1cfb5a2aa18 100644 (file)
@@ -284,8 +284,8 @@ static HINSTANCE Direct3D11LoadShaderLibrary(void)
     HINSTANCE instance = NULL;
     /* d3dcompiler_47 is the latest on windows 8.1 */
     for (int i = 47; i > 41; --i) {
-        TCHAR filename[18];
-        _sntprintf(filename, 18, TEXT("D3DCOMPILER_%d.dll"), i);
+        TCHAR filename[19];
+        _sntprintf(filename, 19, TEXT("D3DCOMPILER_%d.dll"), i);
         instance = LoadLibrary(filename);
         if (instance) break;
     }