rem: tempname = (tempnam ( ".", "gsbpt" ));
add: tempname = g_strdup_printf ( "gsbpt%5d", g_random_int_range (0,99999) );
context: gint latex_initialise (GSList * opes_selectionnees){  gfloat colwidth, real_width;  gchar * filename;  int i;  if ( ! print_config() )    return FALSE;  if ( etat.print_config.printer || etat.print_config.filetype == POSTSCRIPT_FILE )    {      tempname = (tempnam ( ".", "gsbpt" ));      filename =  g_strdup_printf ( "%s.tex", tempname );    }  else    {      filename = etat.print_config.printer_filename;    }  out = fopen ( filename, "w+x" );  if ( ! out )    {      dialogue_error ( g_strdup_printf ("File '%s' already exists", filename ));;      return FALSE;    }  fprintf (out, 	   "\\documentclass{article}\n\n"	   "\\special{! TeXDict begin /landplus90{true}store end }\n"	   "\\usepackage{a4}\n"	   "\\usepackage[utf8]{inputenc}\n"	   "\\usepackage{eurosym}\n"	   "\\usepackage{boxedminipage}\n"	   "\\usepackage{longtable}\n"	   "\\usepackage{vmargin}\n"	   "\\usepackage[T1]{fontenc}\n");  if ( etat.print_config.orientation == LANDSCAPE )    {      fprintf (out,	       "\\usepackage{landscape}\n"	       "\\def\\printlandscape{\\special{landscape}}\n");    }  fprintf (out,	   "\\setpapersize{%s}\n"	   "\\setmarginsrb{1cm}{1cm}{1cm}{1cm}{0cm}{0cm}{0cm}{0cm}\n\n"	   "\\begin{document}\n\n"	   "\\fboxsep \\parskip\n"	   "\\fboxrule 0pt\n"	   "\\tabcolsep 0pt\n"	   "\\begin{longtable}[l]{", etat.print_config.paper_config.name );  if ( etat.print_config.orientation == LANDSCAPE )    {      real_width = ((etat.print_config.paper_config.height-20)/10);    }  else    {      real_width = ((etat.print_config.paper_config.width-20)/10);    }    if ( etat_courant -> afficher_opes )    {      colwidth = real_width / ((float) (nb_colonnes / 2) + 1 );      fprintf ( out, "p{%fcm}", colwidth);      for (i = 0 ; i < nb_colonnes/2 ; i++)	{	  fprintf ( out, "p{%fcm}p{1pt}", colwidth );	}      fprintf ( out, "}" );    }  else     {      colwidth = real_width / (float) nb_colonnes;      for (i = 0 ; i < nb_colonnes ; i++)	{	  fprintf (out, "p{%fcm}", colwidth);	}      fprintf (out, "p{1pt}}\n", colwidth);    }  return TRUE;}