aboutsummaryrefslogtreecommitdiff
path: root/src/datastore/plugin_datastore_sqlite.c
diff options
context:
space:
mode:
authorgrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2010-02-22 10:48:44 +0000
committergrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2010-02-22 10:48:44 +0000
commit24cad24ab4a10d9012e4c342033c3433f0007d08 (patch)
treef67ce72ba77799ceaa3f9d54888c05c80131e6da /src/datastore/plugin_datastore_sqlite.c
parent52b8a4717c7bdff24538ceb502b4e3d2b8ec1ff2 (diff)
fix cleanup
git-svn-id: https://gnunet.org/svn/gnunet@10395 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/datastore/plugin_datastore_sqlite.c')
-rw-r--r--src/datastore/plugin_datastore_sqlite.c4
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",