From 370db2835843ac75f85e1386c05455f26a6ff58c Mon Sep 17 00:00:00 2001 From: Cary Phillips Date: Mon, 13 May 2024 10:09:52 -0700 Subject: [PATCH] Fix setting of part name via "name" attribute (#1748) Calling `exr_attr_set_string()` on the "name" attribute sets the part name. But this was inadvertently setting the part name to the string "name", not to the actual value of the attribute. Signed-off-by: Cary Phillips --- src/lib/OpenEXRCore/part_attr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/OpenEXRCore/part_attr.c b/src/lib/OpenEXRCore/part_attr.c index f65420f2d9..86bb391e7f 100644 --- a/src/lib/OpenEXRCore/part_attr.c +++ b/src/lib/OpenEXRCore/part_attr.c @@ -1859,7 +1859,7 @@ exr_attr_set_string ( EXR_LOCK_AND_DEFINE_PART (part_index); if (name && !strcmp (name, EXR_REQ_NAME_STR)) - return EXR_UNLOCK_AND_RETURN (exr_set_name (ctxt, part_index, name)); + return EXR_UNLOCK_AND_RETURN (exr_set_name (ctxt, part_index, val)); if (name && !strcmp (name, EXR_REQ_TYPE_STR)) return EXR_UNLOCK_AND_RETURN (ctxt->print_error (