[Rpm-maint] [rpm-software-management/rpm] Drop slen from builtin macro parser function (#839)
Michael Schroeder
notifications at github.com
Tue Sep 17 09:31:44 UTC 2019
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20190917/ed7dc138/attachment-0001.html>
More information about the Rpm-maint
mailing list