From 2fb69e98130da6f74c12dd8c3b595c960a821995 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Thu, 15 May 2014 16:36:20 +0200 Subject: util.h: fix MAX_URI_SIZE sizeof usage Fix for : inc/request.h:131:14: error: sizeof on pointer operation will return size of 'char *' instead of 'char [9]' [-Werror,-Wsizeof-array-decay] Signed-off-by: Danny Al-Gaaf --- inc/util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc') diff --git a/inc/util.h b/inc/util.h index 4138ca7..94ed0e7 100644 --- a/inc/util.h +++ b/inc/util.h @@ -58,7 +58,7 @@ // 255 is the maximum bucket length #define MAX_URI_SIZE \ ((sizeof("https:///") - 1) + S3_MAX_HOSTNAME_SIZE + 255 + 1 + \ - MAX_URLENCODED_KEY_SIZE + (sizeof("?torrent" - 1)) + 1) + MAX_URLENCODED_KEY_SIZE + (sizeof("?torrent") - 1) + 1) // Maximum size of a canonicalized resource #define MAX_CANONICALIZED_RESOURCE_SIZE \ -- cgit v1.2.1