Change-Id: Ia097463edc4c9d530dfa158d42bd0f0ea73d85f1
Name: data-provider-master
Summary: Master service provider for liveboxes
-Version: 0.25.17
+Version: 0.25.18
Release: 1
Group: HomeTF/Livebox
License: Flora License
goto errout;
}
- filebuf = malloc(filesize);
+ filebuf = malloc(filesize + 1);
if (!filebuf) {
ErrPrint("malloc: %s\n", strerror(errno));
goto errout;
readsize += ret;
}
+ if (filebuf) {
+ filebuf[readsize] = '\0';
+ }
+
/*!
* \note
* Now, we are ready to parse the filebuf.
state = BEGIN;
block->filename = filename;
block_list = eina_list_append(block_list, block);
+ block = NULL;
} else {
state = FIELD;
continue;