gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r9902 - GNUnet/src/applications/sqstore_sqlite


From: gnunet
Subject: [GNUnet-SVN] r9902 - GNUnet/src/applications/sqstore_sqlite
Date: Sat, 26 Dec 2009 23:34:50 +0100

Author: grothoff
Date: 2009-12-26 23:34:50 +0100 (Sat, 26 Dec 2009)
New Revision: 9902

Modified:
   GNUnet/src/applications/sqstore_sqlite/sqlite.c
Log:
nicer

Modified: GNUnet/src/applications/sqstore_sqlite/sqlite.c
===================================================================
--- GNUnet/src/applications/sqstore_sqlite/sqlite.c     2009-12-26 22:34:35 UTC 
(rev 9901)
+++ GNUnet/src/applications/sqstore_sqlite/sqlite.c     2009-12-26 22:34:50 UTC 
(rev 9902)
@@ -1125,7 +1125,8 @@
   handle = getDBHandle ();
   dbh = handle->dbh;
 
-  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 ==
@@ -1181,7 +1182,8 @@
       return total;
     }
 
-  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",





reply via email to

[Prev in Thread] Current Thread [Next in Thread]