]> wimlib.net Git - wimlib/blobdiff - src/xml.c
xml: fix wimlib_set_image_property()
[wimlib] / src / xml.c
index 63c3b4fb03e444a36386218e6671ff79ec723556..691a2373fe5b7824b5fb625f9eac39a23a83d30a 100644 (file)
--- a/src/xml.c
+++ b/src/xml.c
@@ -1213,7 +1213,7 @@ wimlib_set_image_property(WIMStruct *wim, int image, const tchar *property_name,
        if (!property_name || !*property_name)
                return WIMLIB_ERR_INVALID_PARAM;
 
-       if (!xml_legal_name(property_name)) {
+       if (!xml_legal_path(property_name)) {
                ERROR("Property name '%"TS"' is illegal in XML", property_name);
                return WIMLIB_ERR_INVALID_PARAM;
        }