summaryrefslogtreecommitdiff
path: root/src/daemon/dlt_daemon_event_handler.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/dlt_daemon_event_handler.c')
-rw-r--r--src/daemon/dlt_daemon_event_handler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon/dlt_daemon_event_handler.c b/src/daemon/dlt_daemon_event_handler.c
index 6c33d23..3cecf64 100644
--- a/src/daemon/dlt_daemon_event_handler.c
+++ b/src/daemon/dlt_daemon_event_handler.c
@@ -111,7 +111,7 @@ static void dlt_event_handler_enable_fd(DltEventHandler *ev, int fd, int mask)
if (ev->max_nfds <= ev->nfds) {
int i = (int) ev->nfds;
int max = (int) (2 * ev->max_nfds);
- struct pollfd *tmp = realloc(ev->pfd, max * sizeof(*ev->pfd));
+ struct pollfd *tmp = realloc(ev->pfd, (size_t) (max) * sizeof(*ev->pfd));
if (!tmp) {
dlt_log(LOG_CRIT,