From 978bbb4f4da3078c0c562cfccc18b76f518eccea Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 14 Jul 2005 12:00:31 +0000 Subject: r8461: fixed integer64 handling on bit endian platforms. The ejs code used %Ld, which is an invalid format code. This will probably cause problems on systems that don't have %lld, but do have a working snprintf otherwise. We will need to expand the snprintf configure test to make sure we replace snprintf on those platforms (This used to be commit ccc87eb8aaf571d91170555a732d287746b3430f) --- source4/lib/appweb/mpr/var.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/lib/appweb') diff --git a/source4/lib/appweb/mpr/var.c b/source4/lib/appweb/mpr/var.c index d3d21f7eee..9b02c0f8b0 100644 --- a/source4/lib/appweb/mpr/var.c +++ b/source4/lib/appweb/mpr/var.c @@ -1658,7 +1658,7 @@ void mprVarToString(char** out, int size, char *fmt, MprVar *obj) #if BLD_GOAHEAD_WEBSERVER mprAllocSprintf(out, size, "%d", (int) obj->integer64); #else - mprAllocSprintf(out, size, "%Ld", obj->integer64); + mprAllocSprintf(out, size, "%lld", obj->integer64); #endif } else { mprAllocSprintf(out, size, fmt, obj->integer64); -- cgit