Skip to content

Commit

Permalink
debug:001
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Jun 23, 2024
1 parent d9290b3 commit 7ee7846
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions amalgamation/toxcore_amalgamation.c
Original file line number Diff line number Diff line change
Expand Up @@ -32470,6 +32470,7 @@ int gc_get_savedpeer_public_key_by_slot_number(const GC_Chat *chat, uint32_t slo
if (peernumber < 0) {
memcpy(public_key, saved_peer->public_key, ENC_PUBLIC_KEY_SIZE);
// DEBUG ---------------------
printf("ENC_PUBLIC_KEY_SIZE:%d\n", (int)ENC_PUBLIC_KEY_SIZE);
char key_bin[ENC_PUBLIC_KEY_SIZE + 1];
memset(key_bin, 0, ENC_PUBLIC_KEY_SIZE + 1);
memcpy(key_bin, saved_peer->public_key, ENC_PUBLIC_KEY_SIZE);
Expand Down
1 change: 1 addition & 0 deletions amalgamation/toxcore_amalgamation_no_toxav.c
Original file line number Diff line number Diff line change
Expand Up @@ -29970,6 +29970,7 @@ int gc_get_savedpeer_public_key_by_slot_number(const GC_Chat *chat, uint32_t slo
if (peernumber < 0) {
memcpy(public_key, saved_peer->public_key, ENC_PUBLIC_KEY_SIZE);
// DEBUG ---------------------
printf("ENC_PUBLIC_KEY_SIZE:%d\n", (int)ENC_PUBLIC_KEY_SIZE);
char key_bin[ENC_PUBLIC_KEY_SIZE + 1];
memset(key_bin, 0, ENC_PUBLIC_KEY_SIZE + 1);
memcpy(key_bin, saved_peer->public_key, ENC_PUBLIC_KEY_SIZE);
Expand Down
1 change: 1 addition & 0 deletions toxcore/group_chats.c
Original file line number Diff line number Diff line change
Expand Up @@ -3617,6 +3617,7 @@ int gc_get_savedpeer_public_key_by_slot_number(const GC_Chat *chat, uint32_t slo
if (peernumber < 0) {
memcpy(public_key, saved_peer->public_key, ENC_PUBLIC_KEY_SIZE);
// DEBUG ---------------------
printf("ENC_PUBLIC_KEY_SIZE:%d\n", (int)ENC_PUBLIC_KEY_SIZE);
char key_bin[ENC_PUBLIC_KEY_SIZE + 1];
memset(key_bin, 0, ENC_PUBLIC_KEY_SIZE + 1);
memcpy(key_bin, saved_peer->public_key, ENC_PUBLIC_KEY_SIZE);
Expand Down

0 comments on commit 7ee7846

Please sign in to comment.