1
0
mirror of https://github.com/signalwire/freeswitch.git synced 2025-04-18 01:28:42 +00:00

mod_skinny: fix calloc argument ordering CID: 1214236 1214235

This commit is contained in:
Nathan Neulinger 2014-08-05 11:52:52 -05:00 committed by Anthony Minessale
parent b5dec7d142
commit d0aaf0cc16

@ -92,12 +92,12 @@ char* skinny_codec2string(skinny_codecs skinnycodec);
/*****************************************************************************/
#define skinny_create_message(message,msgtype,field) \
message = calloc(12 + sizeof(message->data.field), 1); \
message = calloc(1, 12 + sizeof(message->data.field)); \
message->type = msgtype; \
message->length = 4 + sizeof(message->data.field)
#define skinny_create_empty_message(message,msgtype) \
message = calloc(12, 1); \
message = calloc(1, 12); \
message->type = msgtype; \
message->length = 4