$NetBSD: patch-bx,v 1.2 2012/12/25 21:02:15 joerg Exp $ --- xferlogs/xferlogs.c.orig 2008-08-08 07:01:57.000000000 +0000 +++ xferlogs/xferlogs.c @@ -125,7 +125,7 @@ xmitFile(char *filename) //IN : file to RpcVMX_Log("%s: %s: ver - %d", LOG_START_MARK, filename, LOG_VERSION); while ((readLen = fread(buf, 1, sizeof buf, fp)) > 0 ) { if (Base64_Encode(buf, readLen, base64Buf, sizeof base64B - 1, NULL)) { - RpcVMX_Log(base64B); + RpcVMX_Log("%s", base64B); } else { Warning("Error in Base64_Encode\n"); goto exit; @@ -200,8 +200,8 @@ extractFile(char *filename) //IN: vmx lo * Ignore the filename in the log, for obvious security reasons * and create a new filename consiting of time and enumerator. */ - Str_Sprintf(fname, sizeof fname, "%d_%"FMTTIME".log", - filenu++, time(NULL)); + Str_Sprintf(fname, sizeof fname, "%d_%lld.log", + filenu++, (long long)time(NULL)); /* * Read the version information, if they dont match just warn @@ -261,7 +261,7 @@ main(int argc, char *argv[]) usage(); return -1; } if (argc == 2) { - RpcVMX_Log(argv[1]); + RpcVMX_Log("%s", argv[1]); return 0; }