Author: Andreas Tille <tille@debian.org>
Last-Update: Thu, 15 May 2014 13:34:33 +0200
Bug-Debian: http://bugs.debian.org/748212
Description: Fix Excess argument in call to function erreur

--- a/src/input.c
+++ b/src/input.c
@@ -337,7 +337,7 @@ void tp400_read( int w_type , double **p
   /* reads probabilities from file */
    /* w_type = 0 (protein), 1 (dna w/o transl.), 2 (dna with transl.) */  
 
-  char line[MLINE], file_name[MLINE], suffix[10], str[MLINE] ;
+  char line[MLINE], file_name[MLINE], suffix[10], str[MLINE], *buf ;
   int sum, len, max_sim, i ;
   double pr;
 
@@ -370,9 +370,12 @@ void tp400_read( int w_type , double **p
  }
 
 
-  if ( fgets( line , MLINE , fp ) == NULL ) 
-    erreur("\n\n problem with file %s  \n\n", file_name );
-  else
+  if ( fgets( line , MLINE , fp ) == NULL ) {
+    buf = (char *)malloc( strlen(file_name) + 64 );
+    sprintf(buf, "\n\n problem with file %s  \n\n", file_name);
+    erreur( buf );
+    free( buf );
+  } else
     if( w_type % 2 )  
       av_sim_score_nuc = atof( line );
     else
