diff options
author | Plex <thinkplex@riseup.net> | 2021-10-25 16:47:49 +0200 |
---|---|---|
committer | Plex <thinkplex@riseup.net> | 2021-10-25 16:47:49 +0200 |
commit | d25c1b105da1606d3e372974d7546c1f7726a198 (patch) | |
tree | 357040b6be050bad2f6603419712446cf9ac2184 /mcping.c | |
parent | 53a085962964f4db118619a5e2156c901aba55a6 (diff) |
handshake serialized
Diffstat (limited to 'mcping.c')
-rw-r--r-- | mcping.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -73,12 +73,12 @@ int main(int argc, char *argv[]) writeVarInt(1) }; - char u; - char* raw_hs = &u; - size_t hs_size = serializeHandshake(hs, raw_hs); + unsigned char *raw_hs; + size_t hs_size = serializeHandshake(hs, &raw_hs); printf("%lu\n", hs_size); for (int i = 0; i < hs_size; ++i) { printf("%02X ", raw_hs[i]); } + printf("\n"); return 0; } |