diff options
author | Jenkins2 <jenkins2@gerrit.asterisk.org> | 2018-02-21 18:42:18 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2018-02-21 18:42:18 -0600 |
commit | fc0cad481a6b320b50504d14f7f9f2ce1a308307 (patch) | |
tree | 74296248694bad1ed1cfc54dd01a0ff834ab3f3c /main | |
parent | 2220be234905d729668570242b73f0d6f9ca42e9 (diff) | |
parent | f083edc43c243eab9428548c2eb9ab606d841a43 (diff) |
Merge "manager.c: Fix lseek() parameter order."
Diffstat (limited to 'main')
-rw-r--r-- | main/manager.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/manager.c b/main/manager.c index 177959ac8..b698702af 100644 --- a/main/manager.c +++ b/main/manager.c @@ -7672,7 +7672,7 @@ static void process_output(struct mansession *s, struct ast_str **out, struct as fd = ast_iostream_get_fd(s->stream); - l = lseek(fd, SEEK_CUR, 0); + l = lseek(fd, 0, SEEK_CUR); if (l > 0) { if (MAP_FAILED == (buf = mmap(NULL, l, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0))) { ast_log(LOG_WARNING, "mmap failed. Manager output was not processed\n"); @@ -8174,7 +8174,7 @@ static int auth_http_callback(struct ast_tcptls_session_instance *ser, m.headers[idx] = NULL; } - result_size = lseek(ast_iostream_get_fd(s.stream), SEEK_CUR, 0); /* Calculate approx. size of result */ + result_size = lseek(ast_iostream_get_fd(s.stream), 0, SEEK_CUR); /* Calculate approx. size of result */ http_header = ast_str_create(80); out = ast_str_create(result_size * 2 + 512); |