xpath BUGFIX invalid parameters for log message
incorrect order of the format string parameters caused segmentation
faults.
diff --git a/src/xpath.c b/src/xpath.c
index 9f9e911..fe0b70d 100644
--- a/src/xpath.c
+++ b/src/xpath.c
@@ -3512,7 +3512,7 @@
LOGWRN(set->ctx, "Argument #%u of %s is a %s node \"%s\".",
i + 1, __func__, lys_nodetype2str(sleaf->nodetype), sleaf->name);
} else if (!warn_is_string_type(sleaf->type)) {
- LOGWRN(set->ctx, "Argument #%u of %s is node \"%s\", not of string-type.", __func__, i + 1, sleaf->name);
+ LOGWRN(set->ctx, "Argument #%u of %s is node \"%s\", not of string-type.", i + 1, __func__, sleaf->name);
}
}
}