mod_skinny: fix calloc argument ordering CID: 1214236 1214235

This commit is contained in:
Nathan Neulinger 2014-08-05 11:52:52 -05:00
parent d0b49f95de
commit 92b95c2d05
1 changed files with 2 additions and 2 deletions

View File

@ -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