Browse Source

Compile fix

bel 9 năm trước cách đây
mục cha
commit
28d215e211
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/civetweb.c

+ 1 - 1
src/civetweb.c

@@ -1587,7 +1587,7 @@ int mg_get_server_ports(const struct mg_context *ctx,
 	if (size <= 0) {
 	if (size <= 0) {
 		return -1;
 		return -1;
 	}
 	}
-	memset(ports, 0, sizeof(*ports) * size);
+	memset(ports, 0, sizeof(*ports) * (size_t)size);
 	if (!ctx) {
 	if (!ctx) {
 		return -1;
 		return -1;
 	}
 	}