tcorrect LENGTH() - st - [fork] customized build of st, the simple terminal | |
git clone git://src.adamsgaard.dk/st | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit c61b34e8e1883faba38f94b0c6775a47b1267e6f | |
parent 693e2413c8c114c6a95327a609c28be643b9d582 | |
Author: Matthias-Christian Ott <[email protected]> | |
Date: Mon, 2 Jun 2008 20:15:52 +0200 | |
correct LENGTH() | |
Diffstat: | |
M std.c | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/std.c b/std.c | |
t@@ -13,7 +13,7 @@ | |
#include <string.h> | |
#include <unistd.h> | |
-#define LENGTH(x) (sizeof (x) / sizeof (x)[0]) | |
+#define LENGTH(x) (sizeof(x) / sizeof((x)[0])) | |
#define MAX(a,b) (((a) > (b)) ? (a) : (b)) | |
#define MIN(a,b) (((a) < (b)) ? (a) : (b)) | |