Commit 8f8889a7 authored by massiot's avatar massiot

* dvblast.c: Fix segfault with buffer overflow and -d option (thanks testking !)

 * ALL: Fix trailing whitespaces/tabs.


git-svn-id: svn://svn.videolan.org/dvblast/trunk@96 55d3f8b6-4a41-4d2d-a900-313d1436a5b8
parent 2c37692e
......@@ -484,7 +484,6 @@ int main( int i_argc, char **pp_argv )
snprintf( sz_port, sizeof( sz_port ), "%d", atoi( psz_token + 1 ) );
}
memset( &ai_hints, 0, sizeof( ai_hints ) );
ai_hints.ai_socktype = SOCK_DGRAM;
ai_hints.ai_flags = AI_ADDRCONFIG | AI_NUMERICHOST | AI_NUMERICSERV;
......@@ -528,7 +527,7 @@ int main( int i_argc, char **pp_argv )
}
psz_displayname = malloc( INET_ADDRSTRLEN + 18 );
snprintf( psz_displayname, ( INET6_ADDRSTRLEN + 18 ),
snprintf( psz_displayname, ( INET_ADDRSTRLEN + 18 ),
"duplicate (%s:%s)", optarg, sz_port );
i_dup_config |= OUTPUT_VALID;
......
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