From 93c2196189fb1a358aae91a8f712378075ce8b17 Mon Sep 17 00:00:00 2001 From: Aaryaman Vasishta Date: Sun, 24 Apr 2016 21:20:19 +0530 Subject: [PATCH] d3drm: Use sizeof instead of strlen in d3drm_texture3_GetClassName. Signed-off-by: Aaryaman Vasishta Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- dlls/d3drm/texture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/d3drm/texture.c b/dlls/d3drm/texture.c index f81fc037df6..60374d3cb57 100644 --- a/dlls/d3drm/texture.c +++ b/dlls/d3drm/texture.c @@ -796,7 +796,7 @@ static HRESULT WINAPI d3drm_texture3_GetClassName(IDirect3DRMTexture3 *iface, DW { TRACE("iface %p, size %p, name %p.\n", iface, size, name); - if (!size || *size < strlen("Texture") || !name) + if (!size || *size < sizeof("Texture") || !name) return E_INVALIDARG; strcpy(name, "Texture");