From: Volker Lendecke Date: Sun, 12 May 2013 10:44:41 +0000 (+0200) Subject: pthreadpool: Fix CID 710828 Sizeof not portable X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=7027c6aca96ce4eb4b6a4207f206d7b85eae7c56;p=obnox%2Fsamba%2Fsamba-obnox.git pthreadpool: Fix CID 710828 Sizeof not portable Signed-off-by: Volker Lendecke Reviewed-by: Ira Cooper --- 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 */