Files
pkgsrc-ng/devel/tig/patches/patch-tig_h
2014-11-05 12:41:07 +01:00

14 lines
427 B
Plaintext

$NetBSD: patch-tig_h,v 1.3 2013/08/23 05:09:28 schmonz Exp $
--- tig.h.orig 2013-08-10 14:27:10.000000000 +0000
+++ tig.h
@@ -93,7 +93,7 @@
#define MIN(x, y) ((x) < (y) ? (x) : (y))
#define MAX(x, y) ((x) > (y) ? (x) : (y))
-#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
+#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
#define STRING_SIZE(x) (sizeof(x) - 1)
#define SIZEOF_STR 1024 /* Default string size. */