summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/manager.c b/main/manager.c
index 083f42fc3..5ce5fa98a 100644
--- a/main/manager.c
+++ b/main/manager.c
@@ -2759,7 +2759,7 @@ static char *generic_http_callback(enum output_format format,
}
if (s->f != NULL) { /* have temporary output */
char *buf;
- off_t l = fseek(s->f, 0, SEEK_END); /* how many chars available */
+ int l = ftell(s->f);
/* always return something even if len == 0 */
if ((buf = ast_calloc(1, l+1))) {