[vlc-commits] direct3d11: give enough room for the \0 in the string

Steve Lhomme git at videolan.org
Mon Mar 23 11:57:03 CET 2015


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Mon Mar 23 10:28:52 2015 +0100| [1440fe0773e1478191e108c5cc3c464ee0ca7bfa] | committer: Jean-Baptiste Kempf

direct3d11: give enough room for the \0 in the string

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1440fe0773e1478191e108c5cc3c464ee0ca7bfa
---

 modules/video_output/msw/direct3d11.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/video_output/msw/direct3d11.c b/modules/video_output/msw/direct3d11.c
index 18552ee..b673e05 100644
--- a/modules/video_output/msw/direct3d11.c
+++ b/modules/video_output/msw/direct3d11.c
@@ -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;
     }



More information about the vlc-commits mailing list