Explorar o código

Missing header field added

Jan Janak %!s(int64=21) %!d(string=hai) anos
pai
achega
8bfbc23cf2
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      db/db.c

+ 2 - 1
db/db.c

@@ -31,6 +31,7 @@
 #include "../sr_module.h"
 #include "../mem/mem.h"
 #include "../str.h"
+#include "../ut.h"
 
 db_func_t dbf;
 
@@ -129,7 +130,7 @@ int table_version(db_con_t* connection, const str* table)
 	}
 
 	if (RES_ROW_N(res) == 0) {
-		DBG("table_version(): No row for table %s found\n", table->len, ZSW(table->s));
+		DBG("table_version(): No row for table %.*s found\n", table->len, ZSW(table->s));
 		return 0;
 	}