Commit b76e1346 authored by Christophe Massiot's avatar Christophe Massiot

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

* dvblast.c: Fix segfault with buffer overflow and -d option (thanks testking !) * ALL: Fix trailing whitespaces/tabs.
parent 392f1933
......@@ -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