summaryrefslogtreecommitdiffstats
path: root/sbin/ggate/ggatel/ggatel.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/ggate/ggatel/ggatel.c')
-rw-r--r--sbin/ggate/ggatel/ggatel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ggate/ggatel/ggatel.c b/sbin/ggate/ggatel/ggatel.c
index 78b969e..01be38c 100644
--- a/sbin/ggate/ggatel/ggatel.c
+++ b/sbin/ggate/ggatel/ggatel.c
@@ -123,7 +123,7 @@ once_again:
error = 0;
switch (ggio.gctl_cmd) {
case BIO_READ:
- if (ggio.gctl_length > bsize) {
+ if ((size_t)ggio.gctl_length > bsize) {
ggio.gctl_data = realloc(ggio.gctl_data,
ggio.gctl_length);
if (ggio.gctl_data != NULL)
OpenPOWER on IntegriCloud