Fix potential bugs

This commit is contained in:
Clément Stenac 2006-04-06 07:36:57 +00:00
parent 335a2445b6
commit e5d7794c1c
3 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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, " );

View File

@ -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);