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

Use strlcpy

parent 065691d7
...@@ -1791,8 +1791,7 @@ static int RtspCallbackId( httpd_callback_sys_t *p_args, ...@@ -1791,8 +1791,7 @@ static int RtspCallbackId( httpd_callback_sys_t *p_args,
snprintf( psz_access, sizeof( psz_access ), snprintf( psz_access, sizeof( psz_access ),
"udp{raw,ttl=%d}", p_sys->i_ttl ); "udp{raw,ttl=%d}", p_sys->i_ttl );
else else
strncpy( psz_access, "udp{raw}", sizeof( psz_access ) ); strlcpy( psz_access, "udp{raw}", sizeof( psz_access ) );
psz_access[sizeof( psz_access ) - 1] = '\0';
snprintf( psz_url, sizeof( psz_url ), snprintf( psz_url, sizeof( psz_url ),
( strchr( ip, ':' ) != NULL ) ? "[%s]:%d" : "%s:%d", ( strchr( ip, ':' ) != NULL ) ? "[%s]:%d" : "%s:%d",
......
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