summaryrefslogtreecommitdiffstats
path: root/sbin/ggate/ggatec/ggatec.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/ggate/ggatec/ggatec.c')
-rw-r--r--sbin/ggate/ggatec/ggatec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ggate/ggatec/ggatec.c b/sbin/ggate/ggatec/ggatec.c
index e765fb6..2f90a48 100644
--- a/sbin/ggate/ggatec/ggatec.c
+++ b/sbin/ggate/ggatec/ggatec.c
@@ -254,7 +254,7 @@ once_again:
goto done;
}
if (ggio.gctl_cmd == BIO_READ) {
- if (bsize < ggio.gctl_length) {
+ if (bsize < (size_t)ggio.gctl_length) {
ggio.gctl_data = realloc(ggio.gctl_data,
ggio.gctl_length);
if (ggio.gctl_data != NULL)
OpenPOWER on IntegriCloud