[asterisk-commits] kmoore: branch 1.8 r413592 - /branches/1.8/funcs/func_env.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri May 9 18:02:26 CDT 2014


Author: kmoore
Date: Fri May  9 18:02:22 2014
New Revision: 413592

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=413592
Log:
Fix 32bit build for func_env

Modified:
    branches/1.8/funcs/func_env.c

Modified: branches/1.8/funcs/func_env.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/funcs/func_env.c?view=diff&rev=413592&r1=413591&r2=413592
==============================================================================
--- branches/1.8/funcs/func_env.c (original)
+++ branches/1.8/funcs/func_env.c Fri May  9 18:02:22 2014
@@ -700,7 +700,7 @@
 			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) {




More information about the asterisk-commits mailing list