mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-08 19:00:27 +00:00
Fix sqlite3_deserialize parameters
The call to the sqlite3 library for the deserilization wasn't fully correct. This should fix the size parameters.
This commit is contained in:
parent
de54cee6ef
commit
3c78eee7ec
1 changed files with 1 additions and 1 deletions
|
@ -1711,7 +1711,7 @@ static int db_deserialize(lua_State *L) {
|
|||
if (buffer == NULL || size == 0) /* ignore empty database content */
|
||||
return 0;
|
||||
|
||||
sqlite3_deserialize(db->db, "main", buffer, size, 5, 0);
|
||||
sqlite3_deserialize(db->db, "main", buffer, size, size, 0);
|
||||
free(buffer);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue