Commit e5d7794c authored by Clément Stenac's avatar Clément Stenac

Fix potential bugs

parent 335a2445
......@@ -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]),
ac == 6 ? av[5] : (char *) NULL);
if (ret == 0)
fprintf(stderr, dialog_input_result);
fprintf(stderr, "%s", dialog_input_result);
return ret;
}
......
......@@ -1650,7 +1650,7 @@ void E_(CAMStatus)( access_t * p_access )
#define CHECK_TYPE( x, s ) \
if ( sinfo.type & (CA_##x) ) \
p += sprintf( p, s );
p += sprintf( p, "%s", s );
CHECK_TYPE( CI, "high 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)
goto error;
description[size]=0;
fprintf(stderr,description);
fprintf(stderr, "%s", description);
/* parse sdp (sdpplin) and create a header and a subscribe string */
subscribe = (char *) malloc(sizeof(char)*256);
......
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