Not long ago i replaced lseek() with fseek() but
forgot that filr FILE's you need ftell to
give you the current position.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48501
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
}
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))) {