Skip to content

Commit 48819ff

Browse files
committed
mkpublic: avoid generating truncated STORE_RECORD_KEY/MAPPING_SIGNATURE GUIDs
Fixes: gromox-2.45-169-g519d3d0eb References: GXL-596, DESK-3350
1 parent 519d3d0 commit 48819ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/mkpublic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ static int mk_options(sqlite3 *psqlite, time_t ux_time)
103103
{
104104
auto record_key = GUID::random_new();
105105
auto mapping_sig = GUID::random_new();
106-
char rgtxt[GUIDSTR_SIZE][5];
106+
char rgtxt[5][GUIDSTR_SIZE];
107107
record_key.to_str(rgtxt[0], sizeof(rgtxt[0]));
108108
exc_replid2.to_str(rgtxt[1], sizeof(rgtxt[1]));
109109
exc_replid3.to_str(rgtxt[2], sizeof(rgtxt[2]));

0 commit comments

Comments
 (0)