<p>The calculation of the slen parameter was not correct, as it didn't<br>
account for already processed characters. The parameter itself was<br>
also not used to limit the passed string, as the code assumed zero<br>
termination. Thus we can as well simplify the code by using strlen()<br>
on the passed string.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/rpm-software-management/rpm/pull/839'>https://github.com/rpm-software-management/rpm/pull/839</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Drop slen from builtin macro parser function</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/rpm-software-management/rpm/pull/839/files#diff-0">rpmio/macro.c</a>
    (36)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/rpm-software-management/rpm/pull/839.patch'>https://github.com/rpm-software-management/rpm/pull/839.patch</a></li>
  <li><a href='https://github.com/rpm-software-management/rpm/pull/839.diff'>https://github.com/rpm-software-management/rpm/pull/839.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/rpm-software-management/rpm/pull/839?email_source=notifications&email_token=ADLPZU4GGQ5USLZDVECJYL3QKCPYBA5CNFSM4IXNGCVKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HLZT2KQ">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ADLPZUZBB7HVK42KOZREA2LQKCPYBANCNFSM4IXNGCVA">mute the thread</a>.<img src="https://github.com/notifications/beacon/ADLPZUZFBNQYI3UZYRIN3RTQKCPYBA5CNFSM4IXNGCVKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HLZT2KQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/rpm-software-management/rpm/pull/839?email_source=notifications\u0026email_token=ADLPZU4GGQ5USLZDVECJYL3QKCPYBA5CNFSM4IXNGCVKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HLZT2KQ",
"url": "https://github.com/rpm-software-management/rpm/pull/839?email_source=notifications\u0026email_token=ADLPZU4GGQ5USLZDVECJYL3QKCPYBA5CNFSM4IXNGCVKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HLZT2KQ",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>