<p>Jenkins2 <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/8364">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Corey Farrell: Looks good to me, but someone else must approve
Sean Bright: Looks good to me, approved
Jenkins2: Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">manager.c: Fix lseek() parameter order.<br><br>ASTERISK-27659<br><br>Change-Id: I04a2705d2cb7df250769967bc59e2b397a49b797<br>---<br>M main/manager.c<br>1 file changed, 2 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/main/manager.c b/main/manager.c<br>index 078993f..31465f6 100644<br>--- a/main/manager.c<br>+++ b/main/manager.c<br>@@ -7665,7 +7665,7 @@<br> <br> fd = ast_iostream_get_fd(s->stream);<br> <br>- l = lseek(fd, SEEK_CUR, 0);<br>+ l = lseek(fd, 0, SEEK_CUR);<br> if (l > 0) {<br> if (MAP_FAILED == (buf = mmap(NULL, l, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0))) {<br> ast_log(LOG_WARNING, "mmap failed. Manager output was not processed\n");<br>@@ -8167,7 +8167,7 @@<br> m.headers[idx] = NULL;<br> }<br> <br>- result_size = lseek(ast_iostream_get_fd(s.stream), SEEK_CUR, 0); /* Calculate approx. size of result */<br>+ result_size = lseek(ast_iostream_get_fd(s.stream), 0, SEEK_CUR); /* Calculate approx. size of result */<br> <br> http_header = ast_str_create(80);<br> out = ast_str_create(result_size * 2 + 512);<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/8364">change 8364</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/8364"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 15 </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I04a2705d2cb7df250769967bc59e2b397a49b797 </div>
<div style="display:none"> Gerrit-Change-Number: 8364 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Richard Mudgett <rmudgett@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Sean Bright <sean.bright@gmail.com> </div>