diff --git a/AUTHORS b/AUTHORS index 0c3b2949fd14586ac5e4f7e14464ea2dbd7721fe..1eff668b26246111044f1cee2303dcd2da52e13e 100644 --- a/AUTHORS +++ b/AUTHORS @@ -7,8 +7,8 @@ Aleksey Demakov, Aleksey Mashanov, Alexandre Kalendarev, Damien Lefortier, Dmitry E. Oboukhov, Dmitry Simonenko, Konstantin Osipov, Konstantin Shulgin, Mons Anderson, Pavel Cherenkov, Roman Antipin, Roman Tokarev, Roman Tsisyk, -Teodor Sigaev, Timofey Khryukin, Yuriy Nevinitsin, Yuriy Vostrikov -Veniamin Gvozdikov +Teodor Sigaev, Timofey Khryukin, Yuriy Nevinitsin, Yuriy Vostrikov, +Veniamin Gvozdikov, Aleksandr Lyapunov NOTE: If you can commit a change to this list, please do not hesitate to add your name to it. diff --git a/src/iproto_constants.cc b/src/iproto_constants.cc index 4ae0754acb0d871092acc4c30d61f3e95fd1cff8..5b63996b8fa93a605a41407c77f383011f13a7de 100644 --- a/src/iproto_constants.cc +++ b/src/iproto_constants.cc @@ -322,7 +322,7 @@ void iproto_encode_auth(struct iproto_header *packet, const char *greeting, const char *login, const char *password) { - memset(packet, sizeof(*packet), 0); + memset(packet, 0, sizeof(*packet)); uint32_t login_len = strlen(login); uint32_t password_len = strlen(password); diff --git a/src/iproto_port.cc b/src/iproto_port.cc index 20ddbf767b5c9938c3bb91a61ff76909300c80ba..a51bf1f6f7674b7bbd0af9c5f592ac3b7e97a5c1 100644 --- a/src/iproto_port.cc +++ b/src/iproto_port.cc @@ -38,7 +38,7 @@ struct iproto_header_bin { uint8_t m_code; /* MP_UINT32 */ uint32_t v_code; /* response status */ uint8_t k_sync; /* IPROTO_SYNC */ - uint8_t m_sync; /* MP_UIN32 */ + uint8_t m_sync; /* MP_UIN64 */ uint64_t v_sync; /* sync */ } __attribute__((packed));