topo_node_sqlite: fix snprintf truncation warning in member_block_put

This commit is contained in:
evgeny committed 2026-08-15 12:36:05 +03:00
1 parent a4e73acceb
commit c07bd385ca
1 file changed
+1 -1
+1 -1
View File
@@ -283,7 +283,7 @@ int topo_node_sqlite_member_block_put(sqlite3* db, const char* channel_id, uint6
const char* userinfo, const uint8_t* creator_sig) {
if (!db || !channel_id || !x25519_pubkey || !ed25519_pubkey) return -1;
char peers_tbl[80]; peers_table_name(channel_id, peers_tbl, sizeof(peers_tbl));
char sql[512];
char sql[640];
snprintf(sql, sizeof(sql),
"INSERT INTO \"%s\"(node_id, x25519_pubkey, ed25519_pubkey,"
" join_sig, join_ts, update_sig, update_ts, userinfo, creator_sig)"