Commit 67079185 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Remove silly copy-cat code. vasprintf does not generate socket errors does it?

parent cb708486
......@@ -376,14 +376,7 @@ static void QueueMsg( vlc_object_t *p_this, int i_queue, int i_type,
* will be stored in the buffer we provide to strerror_r() */
strerror_r( errno, psz_err, 1001 );
#else
int sockerr = WSAGetLastError( );
if( sockerr )
{
strncpy( psz_err, net_strerror( sockerr ), 1001 );
WSASetLastError( sockerr );
}
else
strncpy( psz_err, strerror( errno ), 1001 );
strncpy( psz_err, strerror( errno ), 1001 );
#endif
psz_err[1000] = '\0';
fprintf( stderr, "main warning: can't store message (%s): ", psz_err );
......
Markdown is supported
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