diff options
author | millert@openbsd.org <millert@openbsd.org> | 2015-02-07 00:21:59 +0100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2015-02-08 23:28:17 +0100 |
commit | fd36834871d06a03e1ff8d69e41992efa1bbf85f (patch) | |
tree | 95390638f8f92dfd017176d558acec1e91a9e3b0 /monitor.c | |
parent | upstream commit (diff) | |
download | openssh-fd36834871d06a03e1ff8d69e41992efa1bbf85f.tar.xz openssh-fd36834871d06a03e1ff8d69e41992efa1bbf85f.zip |
upstream commit
SIZE_MAX is standard, we should be using it in preference to
the obsolete SIZE_T_MAX. OK miod@ beck@
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: monitor.c,v 1.141 2015/01/20 23:14:00 deraadt Exp $ */ +/* $OpenBSD: monitor.c,v 1.142 2015/02/06 23:21:59 millert Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> * Copyright 2002 Markus Friedl <markus@openbsd.org> @@ -39,9 +39,9 @@ #endif #include <pwd.h> #include <signal.h> +#include <stdint.h> #include <stdlib.h> #include <string.h> -#include <limits.h> #include <stdarg.h> #include <stdio.h> #include <unistd.h> @@ -488,7 +488,7 @@ mm_zalloc(struct mm_master *mm, u_int ncount, u_int size) size_t len = (size_t) size * ncount; void *address; - if (len == 0 || ncount > SIZE_T_MAX / size) + if (len == 0 || ncount > SIZE_MAX / size) fatal("%s: mm_zalloc(%u, %u)", __func__, ncount, size); address = mm_malloc(mm, len); |