[PATCH] winebrowser: Use the ARRAY_SIZE() macro

Michael Stefaniuc mstefani at winehq.org
Fri Aug 10 05:27:53 CDT 2018


Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
 programs/winebrowser/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/programs/winebrowser/main.c b/programs/winebrowser/main.c
index b1c49e7cd1..7fcaba13a1 100644
--- a/programs/winebrowser/main.c
+++ b/programs/winebrowser/main.c
@@ -334,7 +334,7 @@ static WCHAR *encode_unix_path(const char *src)
     const char safe_chars[] = "/-_.~@&=+$,:";
     const char hex_digits[] = "0123456789ABCDEF";
     const WCHAR schema[] = {'f','i','l','e',':','/','/',0};
-    int len = sizeof(schema)/sizeof(schema[0]);
+    int len = ARRAY_SIZE(schema);
 
     tmp_src = src;
 
-- 
2.14.4




More information about the wine-devel mailing list