Browse code

fixed bug (the table name in the query used to get overwritten).

Raphael Coeffic authored on 21/09/2004 14:57:09
Showing 1 changed files
... ...
@@ -120,6 +120,7 @@
120 120
 
121 121
 
122 122
 static char   buf[MAX_SIZE_LINE];
123
+static char   tbl_buf[MAX_SIZE_LINE]; /* current 'table name' buffer */
123 124
 static FILE*  rpl;
124 125
 static db_con_t*     fifo_db_con=0;
125 126
 static db_func_t fifo_dbf;
... ...
@@ -705,7 +706,7 @@ int db_fifo( FILE *fifo, char *response_file )
705 706
 	}
706 707
 
707 708
 	/* read the table name */
708
-	line.s = buf;
709
+	line.s = tbl_buf;/*buf;*/
709 710
 	if (!read_line( line.s, MAX_SIZE_LINE-1, fifo, &line.len) || !line.len) {
710 711
 		double_log("Table name expected");
711 712
 		goto error1;