diff --git a/libs/dbhelper.c b/libs/dbhelper.c index 3c2adc5..6d8a5b4 100644 --- a/libs/dbhelper.c +++ b/libs/dbhelper.c @@ -132,7 +132,7 @@ dbrecord dball(sqlite3* db,const char* table) dbrecord dbselect(sqlite3* db, const char* table,const char* fstring,...) { char* sql; - char* prefix = "SELECT * FROM %s WHERE (%s)"; + char* prefix = "SELECT * FROM %s WHERE %s"; char* cond; va_list arguments; int dlen;