From b35a204d01a0d89940d699aaccb3f3817dca1848 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Pierre=20Andr=C3=A9?= Date: Mon, 22 Apr 2013 18:31:16 +0200 Subject: [PATCH] Increased the maximum format size on Windows The long long printing formats (such as %lld or %llx) have to be translated to %I64 on older Windows systems, and the buffers to receive the translated format must be able to hold the tool banners which can be quite lengthy. --- ntfsprogs/utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ntfsprogs/utils.h b/ntfsprogs/utils.h index 839ce205..8b6bfae5 100644 --- a/ntfsprogs/utils.h +++ b/ntfsprogs/utils.h @@ -105,7 +105,7 @@ int mft_next_record(struct mft_search_ctx *ctx); /* * Macroes to hide the needs to translate formats on older Windows */ -#define MAX_FMT 256 +#define MAX_FMT 1536 char *ntfs_utils_reformat(char *out, int sz, const char *fmt); #define ntfs_log_redirect(fn,fi,li,le,d,fmt, args...) \ do { char buf[MAX_FMT]; ntfs_log_redirect(fn,fi,li,le,d, \