From 91fff802b9513cf0ed616d3aea170d561f899fae Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sun, 12 Jul 2020 21:51:51 -0700 Subject: Check for overflow the right way. --- rsync.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'rsync.h') diff --git a/rsync.h b/rsync.h index be4d8550..9942a705 100644 --- a/rsync.h +++ b/rsync.h @@ -711,6 +711,10 @@ struct ht_int64_node { #define NAME_MAX 255 #endif +#ifndef SIZE_MAX +#define SIZE_MAX ((size_t)-1) +#endif + #ifndef INADDR_NONE #define INADDR_NONE 0xffffffff #endif -- cgit v1.2.1