Commit 7b115db7 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

RAGE: SLURPD malloc bug in st.c

parent 1596b380
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment