Commit 5d434368 authored by winckel's avatar winckel

Corrected size of XML message.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4310 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent f18e4009
......@@ -521,7 +521,7 @@ int itti_dump_init(const char * const messages_definition_xml, const char * cons
if (dump_file_name != NULL)
{
dump_file = fopen(dump_file_name, "w");
dump_file = fopen(dump_file_name, "wb");
if (dump_file == NULL)
{
......@@ -529,10 +529,10 @@ int itti_dump_init(const char * const messages_definition_xml, const char * cons
}
else
{
uint32_t message_size = strlen(messages_definition_xml);
uint32_t message_size = strlen(messages_definition_xml) + 1;
itti_socket_header_t header;
header.message_size = sizeof(itti_dump_message_t) + message_size;
header.message_size = sizeof(itti_socket_header_t) + message_size;
header.message_type = ITTI_DUMP_XML_DEFINITION;
fwrite (&header, sizeof(itti_socket_header_t), 1, dump_file);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment