[hackers] [ubase][PATCH 3/5] mount: Typofix

From: Klemens Nanni <kl3_AT_posteo.org>
Date: Mon, 11 Jul 2016 14:27:58 +0200

---
 mount.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mount.c b/mount.c
index 1f17789..1696219 100644
--- a/mount.c
+++ b/mount.c
_AT_@ -54,7 +54,7 @@ findtype(const char *types, const char *t)
 }
 
 static void
-parseopts(const char *popts, unsigned long *flags, char *data, size_t datasiz)
+parseopts(const char *popts, unsigned long *flags, char *data, size_t datasize)
 {
 	unsigned int i, validopt;
 	size_t optlen, dlen = 0;
_AT_@ -83,7 +83,7 @@ parseopts(const char *popts, unsigned long *flags, char *data, size_t datasiz)
 
 		if (!validopt && optlen > 0) {
 			/* unknown option, pass as data option to mount() */
-			if (dlen + optlen + 2 >= datasiz)
+			if (dlen + optlen + 2 >= datasize)
 				return; /* prevent overflow */
 			if (dlen)
 				data[dlen++] = ',';
-- 
2.8.3
Received on Mon Jul 11 2016 - 14:27:58 CEST

This archive was generated by hypermail 2.3.0 : Mon Jul 11 2016 - 14:36:25 CEST