fixed bug (the table name in the query used to get overwritten).
authorRaphael Coeffic <rco@iptel.org>
Tue, 21 Sep 2004 14:57:09 +0000 (14:57 +0000)
committerRaphael Coeffic <rco@iptel.org>
Tue, 21 Sep 2004 14:57:09 +0000 (14:57 +0000)
db/db_fifo.c

index 7527d04..b0cdef9 100644 (file)
 
 
 static char   buf[MAX_SIZE_LINE];
+static char   tbl_buf[MAX_SIZE_LINE]; /* current 'table name' buffer */
 static FILE*  rpl;
 static db_con_t*     fifo_db_con=0;
 static db_func_t fifo_dbf;
@@ -705,7 +706,7 @@ int db_fifo( FILE *fifo, char *response_file )
        }
 
        /* read the table name */
-       line.s = buf;
+       line.s = tbl_buf;/*buf;*/
        if (!read_line( line.s, MAX_SIZE_LINE-1, fifo, &line.len) || !line.len) {
                double_log("Table name expected");
                goto error1;