summaryrefslogtreecommitdiffstats
path: root/lib/libfuse
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2015-02-06 23:21:58 +0000
committermillert <millert@openbsd.org>2015-02-06 23:21:58 +0000
commit4239b8225fa4f64aecb5a0fe486abd01f9e64ae2 (patch)
treebc2da4d9ac9052268d9b8328f3ed7de2e42e1e1f /lib/libfuse
parentlist iwm(4) in pci(4); prodded by jmc (diff)
downloadwireguard-openbsd-4239b8225fa4f64aecb5a0fe486abd01f9e64ae2.tar.xz
wireguard-openbsd-4239b8225fa4f64aecb5a0fe486abd01f9e64ae2.zip
SIZE_MAX is standard, we should be using it in preference to the
obsolete SIZE_T_MAX. OK miod@ beck@
Diffstat (limited to 'lib/libfuse')
-rw-r--r--lib/libfuse/fuse_opt.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libfuse/fuse_opt.c b/lib/libfuse/fuse_opt.c
index ff8f0af86a9..8919f11c18d 100644
--- a/lib/libfuse/fuse_opt.c
+++ b/lib/libfuse/fuse_opt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fuse_opt.c,v 1.11 2014/10/08 04:50:10 deraadt Exp $ */
+/* $OpenBSD: fuse_opt.c,v 1.12 2015/02/06 23:21:58 millert Exp $ */
/*
* Copyright (c) 2013 Sylvestre Gallon <ccna.syl@gmail.com>
* Copyright (c) 2013 Stefan Sperling <stsp@openbsd.org>
@@ -17,6 +17,7 @@
*/
#include <assert.h>
+#include <stdint.h>
#include <stdlib.h>
#include <string.h>
@@ -174,7 +175,7 @@ fuse_opt_add_opt_escaped(char **opts, const char *opt)
while (*s) {
/* malloc(size + escaped) overflow check */
- if (size >= (SIZE_T_MAX / 2))
+ if (size >= (SIZE_MAX / 2))
return (-1);
if (*s == ',' || *s == '\\')