diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2016-12-23 10:13:07 +0100 |
---|---|---|
committer | Pali Rohár <pali.rohar@gmail.com> | 2016-12-23 10:13:07 +0100 |
commit | b7c28b2c1bfab4783d6da431bef8288e32fdb136 (patch) | |
tree | 9b87eca69f6db08953d11ff9c44c503fb2f9daf5 | |
parent | 0a1ac2521966221c38f654ca59128c7be70fb708 (diff) | |
download | 0xFFFF-b7c28b2c1bfab4783d6da431bef8288e32fdb136.tar.bz2 |
cal: SSIZE_MAX is not required to be defined
-rw-r--r-- | src/cal.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -98,8 +98,10 @@ int cal_init_file(const char * file, struct cal ** cal_out) { goto err; blksize = lsize; #endif +#ifdef SSIZE_MAX if ( blksize > SSIZE_MAX ) goto err; +#endif size = blksize; } else { #ifdef __linux__ |