]> git.sesse.net Git - vlc/commitdiff
Fix potential bugs
authorClément Stenac <zorglub@videolan.org>
Thu, 6 Apr 2006 07:36:57 +0000 (07:36 +0000)
committerClément Stenac <zorglub@videolan.org>
Thu, 6 Apr 2006 07:36:57 +0000 (07:36 +0000)
lxdialog/lxdialog.c
modules/access/dvb/linux_dvb.c
modules/access/rtsp/real.c

index 6f4c1fd4eba5f96dfa2519cffec8a00b89932396..bc4f2d5dfc9f8845812a40452193cf279a998449 100644 (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;
 }
 
index 15e3e32bf9797bafac4a154900bad9e3b7108f37..f8677d4e7f0733224b4f7432f3a3117e27775be3 100644 (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, " );
index d1283dd2ebec3c84f1730acf601d4722103f6dca..8c185b724a10bd617248fcba0cb688116fc201b6 100644 (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);