From 7027c6aca96ce4eb4b6a4207f206d7b85eae7c56 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 12 May 2013 12:44:41 +0200 Subject: [PATCH] pthreadpool: Fix CID 710828 Sizeof not portable Signed-off-by: Volker Lendecke Reviewed-by: Ira Cooper --- source3/lib/pthreadpool/pthreadpool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/lib/pthreadpool/pthreadpool.c b/source3/lib/pthreadpool/pthreadpool.c index 04303776a2f..c5c9367da16 100644 --- a/source3/lib/pthreadpool/pthreadpool.c +++ b/source3/lib/pthreadpool/pthreadpool.c @@ -407,7 +407,7 @@ static void pthreadpool_server_exit(struct pthreadpool *pool) pool->num_threads -= 1; exited = (pthread_t *)realloc( - pool->exited, sizeof(pthread_t *) * (pool->num_exited + 1)); + pool->exited, sizeof(pthread_t) * (pool->num_exited + 1)); if (exited == NULL) { /* lost a thread status */ -- 2.11.4.GIT