Since
154c5eaaf1ecf6224de0bcafc872c4952ffdae9b, the padding
is no longer needed as the daemon handles odd lengths correctly.
Change-Id: I722efc2e5e73f26f1896510da857a42bbfebed9c
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
size_t bufferSize;
const char *pm;
int message_len = entry->len - sizeof(struct logger_entry) - entry->tag_len - 2 /* tag and msg delimiters */;
- // odd-length messages get an extra byte of padding, get rid of that
- if (*(msg + message_len - 1) == '\0')
- --message_len;
-
if (prefixSuffixIsHeaderFooter) {
/* we're just wrapping message with a header/footer */
ple->msg[0] = prio;
memcpy(ple->msg + 1, tag, tag_l);
memcpy(ple->msg + 1 + tag_l, msg, msg_l);
- ple->len += ple->len % 2;
}
/**