The calculation of the slen parameter was not correct, as it didn't account for already processed characters. The parameter itself was also not used to limit the passed string, as the code assumed zero termination. Thus we can as well simplify the code by using strlen() on the passed string. You can view, comment on, or merge this pull request online at:
https://github.com/rpm-software-management/rpm/pull/839 -- Commit Summary -- * Drop slen from builtin macro parser function -- File Changes -- M rpmio/macro.c (36) -- Patch Links -- https://github.com/rpm-software-management/rpm/pull/839.patch https://github.com/rpm-software-management/rpm/pull/839.diff -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/839
_______________________________________________ Rpm-maint mailing list Rpm-maint@lists.rpm.org http://lists.rpm.org/mailman/listinfo/rpm-maint