diff options
Diffstat (limited to 'src/datastore/plugin_datastore_sqlite.c')
-rw-r--r-- | src/datastore/plugin_datastore_sqlite.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/datastore/plugin_datastore_sqlite.c b/src/datastore/plugin_datastore_sqlite.c index 1607ba5e00..2fc28e13e9 100644 --- a/src/datastore/plugin_datastore_sqlite.c +++ b/src/datastore/plugin_datastore_sqlite.c @@ -1427,7 +1427,7 @@ sqlite_plugin_get (void *cls, sqlite_plugin_iter_low_priority (cls, type, iter, iter_cls); return; } - GNUNET_snprintf (scratch, 256, + GNUNET_snprintf (scratch, sizeof (scratch), "SELECT count(*) FROM gn080 WHERE hash=:1%s%s", vhash == NULL ? "" : " AND vhash=:2", type == 0 ? "" : (vhash == @@ -1479,7 +1479,7 @@ sqlite_plugin_get (void *cls, return; } - GNUNET_snprintf (scratch, 256, + GNUNET_snprintf (scratch, sizeof (scratch), "SELECT size, type, prio, anonLevel, expire, hash, value, _ROWID_ " "FROM gn080 WHERE hash=:1%s%s AND _ROWID_ >= :%d " "ORDER BY _ROWID_ ASC LIMIT 1 OFFSET :d", |