From 7b115db7321e1464e2eefa5392cfaf6e010db652 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Sun, 9 Aug 1998 04:52:36 +0000 Subject: [PATCH] RAGE: SLURPD malloc bug in st.c --- servers/slurpd/st.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/servers/slurpd/st.c b/servers/slurpd/st.c index 610b295853..e66a28ba1c 100644 --- a/servers/slurpd/st.c +++ b/servers/slurpd/st.c @@ -56,8 +56,7 @@ St_add( pthread_mutex_unlock( &(st->st_mutex )); return NULL; } - st->st_data[ ind ] = ( Stel * ) ch_malloc( st->st_data, - sizeof( Stel )); + st->st_data[ ind ] = ( Stel * ) ch_malloc( sizeof( Stel ) ); if ( st->st_data[ ind ] == NULL ) { pthread_mutex_unlock( &(st->st_mutex )); return NULL; -- 2.39.5