diff options
Diffstat (limited to 'src/psycstore/plugin_psycstore_sqlite.c')
-rw-r--r-- | src/psycstore/plugin_psycstore_sqlite.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/psycstore/plugin_psycstore_sqlite.c b/src/psycstore/plugin_psycstore_sqlite.c index 46bdfa1bd..83ede6e41 100644 --- a/src/psycstore/plugin_psycstore_sqlite.c +++ b/src/psycstore/plugin_psycstore_sqlite.c | |||
@@ -1046,10 +1046,10 @@ fragment_row (sqlite3_stmt *stmt, GNUNET_PSYCSTORE_FragmentCallback cb, | |||
1046 | msg->header.size = htons (sizeof (*msg) + data_size); | 1046 | msg->header.size = htons (sizeof (*msg) + data_size); |
1047 | msg->header.type = htons (GNUNET_MESSAGE_TYPE_MULTICAST_MESSAGE); | 1047 | msg->header.type = htons (GNUNET_MESSAGE_TYPE_MULTICAST_MESSAGE); |
1048 | msg->hop_counter = htonl ((uint32_t) sqlite3_column_int64 (stmt, 0)); | 1048 | msg->hop_counter = htonl ((uint32_t) sqlite3_column_int64 (stmt, 0)); |
1049 | memcpy (&msg->signature, | 1049 | GNUNET_memcpy (&msg->signature, |
1050 | sqlite3_column_blob (stmt, 1), | 1050 | sqlite3_column_blob (stmt, 1), |
1051 | sqlite3_column_bytes (stmt, 1)); | 1051 | sqlite3_column_bytes (stmt, 1)); |
1052 | memcpy (&msg->purpose, | 1052 | GNUNET_memcpy (&msg->purpose, |
1053 | sqlite3_column_blob (stmt, 2), | 1053 | sqlite3_column_blob (stmt, 2), |
1054 | sqlite3_column_bytes (stmt, 2)); | 1054 | sqlite3_column_bytes (stmt, 2)); |
1055 | msg->fragment_id = GNUNET_htonll (sqlite3_column_int64 (stmt, 3)); | 1055 | msg->fragment_id = GNUNET_htonll (sqlite3_column_int64 (stmt, 3)); |
@@ -1057,7 +1057,7 @@ fragment_row (sqlite3_stmt *stmt, GNUNET_PSYCSTORE_FragmentCallback cb, | |||
1057 | msg->message_id = GNUNET_htonll (sqlite3_column_int64 (stmt, 5)); | 1057 | msg->message_id = GNUNET_htonll (sqlite3_column_int64 (stmt, 5)); |
1058 | msg->group_generation = GNUNET_htonll (sqlite3_column_int64 (stmt, 6)); | 1058 | msg->group_generation = GNUNET_htonll (sqlite3_column_int64 (stmt, 6)); |
1059 | msg->flags = htonl (sqlite3_column_int64 (stmt, 7)); | 1059 | msg->flags = htonl (sqlite3_column_int64 (stmt, 7)); |
1060 | memcpy (&msg[1], sqlite3_column_blob (stmt, 9), data_size); | 1060 | GNUNET_memcpy (&msg[1], sqlite3_column_blob (stmt, 9), data_size); |
1061 | 1061 | ||
1062 | return cb (cb_cls, (void *) msg, sqlite3_column_int64 (stmt, 8)); | 1062 | return cb (cb_cls, (void *) msg, sqlite3_column_int64 (stmt, 8)); |
1063 | } | 1063 | } |