]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix 32bit build for func_env
authorKinsey Moore <kmoore@digium.com>
Fri, 9 May 2014 23:02:22 +0000 (23:02 +0000)
committerKinsey Moore <kmoore@digium.com>
Fri, 9 May 2014 23:02:22 +0000 (23:02 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@413592 65c4cc65-6c06-0410-ace0-fbb531ad65f3

funcs/func_env.c

index a0c8abd6ccaef1ade191d1594f03e4e86bd96572..f96db5624d67ccbd0cace5b52c38fa4718ccf1ee 100644 (file)
@@ -700,7 +700,7 @@ static int file_read(struct ast_channel *chan, const char *cmd, char *data, stru
                        if (fread(fbuf, 1, i + sizeof(fbuf) > flength ? flength - i : sizeof(fbuf), ff) < (i + sizeof(fbuf) > flength ? flength - i : sizeof(fbuf))) {
                                ast_log(LOG_ERROR, "Short read?!!\n");
                        }
-                       ast_debug(3, "Appending first %" PRId64" bytes of fbuf=%s\n", (long)(i + sizeof(fbuf) > length_offset ? length_offset - i : sizeof(fbuf)), fbuf);
+                       ast_debug(3, "Appending first %" PRId64" bytes of fbuf=%s\n", (int64_t)(i + sizeof(fbuf) > length_offset ? length_offset - i : sizeof(fbuf)), fbuf);
                        ast_str_append_substr(buf, len, fbuf, i + sizeof(fbuf) > length_offset ? length_offset - i : sizeof(fbuf));
                }
        } else if (length == 0) {