diff options
author | Wayne Davison <wayne@opencoder.net> | 2020-07-12 21:51:51 -0700 |
---|---|---|
committer | Wayne Davison <wayne@opencoder.net> | 2020-07-12 22:45:01 -0700 |
commit | 91fff802b9513cf0ed616d3aea170d561f899fae (patch) | |
tree | a2ff6ab53afd4a6a3dee6fd28a4939e1a2cdcf04 /rsync.h | |
parent | 3c8ac20d63937e73aa8084679344c39916a93813 (diff) | |
download | rsync-91fff802b9513cf0ed616d3aea170d561f899fae.tar.gz |
Check for overflow the right way.
Diffstat (limited to 'rsync.h')
-rw-r--r-- | rsync.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |