mirror of
https://github.com/videolan/vlc.git
synced 2024-11-25 02:44:30 +08:00
Fix potential bugs
This commit is contained in:
parent
335a2445b6
commit
e5d7794c1c
@ -208,7 +208,7 @@ j_inputbox (const char *t, int ac, const char * const * av)
|
|||||||
int ret = dialog_inputbox (t, av[2], atoi (av[3]), atoi (av[4]),
|
int ret = dialog_inputbox (t, av[2], atoi (av[3]), atoi (av[4]),
|
||||||
ac == 6 ? av[5] : (char *) NULL);
|
ac == 6 ? av[5] : (char *) NULL);
|
||||||
if (ret == 0)
|
if (ret == 0)
|
||||||
fprintf(stderr, dialog_input_result);
|
fprintf(stderr, "%s", dialog_input_result);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1650,7 +1650,7 @@ void E_(CAMStatus)( access_t * p_access )
|
|||||||
|
|
||||||
#define CHECK_TYPE( x, s ) \
|
#define CHECK_TYPE( x, s ) \
|
||||||
if ( sinfo.type & (CA_##x) ) \
|
if ( sinfo.type & (CA_##x) ) \
|
||||||
p += sprintf( p, s );
|
p += sprintf( p, "%s", s );
|
||||||
|
|
||||||
CHECK_TYPE( CI, "high level, " );
|
CHECK_TYPE( CI, "high level, " );
|
||||||
CHECK_TYPE( CI_LINK, "link layer level, " );
|
CHECK_TYPE( CI_LINK, "link layer level, " );
|
||||||
|
@ -673,7 +673,7 @@ rmff_header_t *real_setup_and_get_header(rtsp_client_t *rtsp_session, int bandw
|
|||||||
if( rtsp_read_data(rtsp_session, description, size) <= 0)
|
if( rtsp_read_data(rtsp_session, description, size) <= 0)
|
||||||
goto error;
|
goto error;
|
||||||
description[size]=0;
|
description[size]=0;
|
||||||
fprintf(stderr,description);
|
fprintf(stderr, "%s", description);
|
||||||
|
|
||||||
/* parse sdp (sdpplin) and create a header and a subscribe string */
|
/* parse sdp (sdpplin) and create a header and a subscribe string */
|
||||||
subscribe = (char *) malloc(sizeof(char)*256);
|
subscribe = (char *) malloc(sizeof(char)*256);
|
||||||
|
Loading…
Reference in New Issue
Block a user