Commit bd97f401 authored by Jesse Natalie's avatar Jesse Natalie Committed by Marge Bot

microsoft/compiler: Fix incorrect size passed to strncpy

GCC correctly detects/warns that this was the wrong size

Fixes: b9c61379 ("microsoft/compiler: translate nir to dxil")
Reviewed-by: Adam Jackson's avatarAdam Jackson <>
Part-of: <mesa/mesa!8248>
parent bb6a1f5b
......@@ -163,7 +163,7 @@ get_semantic_sv_name(nir_variable *var, struct semantic_info *info)
unreachable("unsupported system value");
strncpy(info->name, var->name, 64);
strncpy(info->name, var->name, ARRAY_SIZE(info->name) - 1);
static void
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment