Add a bounds check

This commit is contained in:
Kovid Goyal
2018-01-14 11:18:44 +05:30
parent f03cac8a9d
commit d385952fef
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -25,6 +25,7 @@
#define MIN(x, y) (((x) > (y)) ? (y) : (x))
#define xstr(s) str(s)
#define str(s) #s
#define arraysz(x) (sizeof(x)/sizeof(x[0]))
#define fatal(...) { fprintf(stderr, __VA_ARGS__); fprintf(stderr, "\n"); exit(EXIT_FAILURE); }
typedef unsigned long long id_type;