aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmdsserver/mds-message.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-09-04 12:59:42 +0200
committerMattias Andrée <maandree@operamail.com>2015-09-04 12:59:42 +0200
commit6b2ec6d2faf9cb0890351eb5dee62a13638b7605 (patch)
treea36502dca0191a8d0b3a8dbcae2f6c14edcb8489 /src/libmdsserver/mds-message.c
parentmake it easier to read output from make (diff)
downloadmds-6b2ec6d2faf9cb0890351eb5dee62a13638b7605.tar.gz
mds-6b2ec6d2faf9cb0890351eb5dee62a13638b7605.tar.bz2
mds-6b2ec6d2faf9cb0890351eb5dee62a13638b7605.tar.xz
add libmds_message
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/libmdsserver/mds-message.c')
-rw-r--r--src/libmdsserver/mds-message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmdsserver/mds-message.c b/src/libmdsserver/mds-message.c
index f673324..8590676 100644
--- a/src/libmdsserver/mds-message.c
+++ b/src/libmdsserver/mds-message.c
@@ -261,7 +261,7 @@ static int store_header(mds_message_t* restrict this, size_t length)
char* header;
/* Allocate the header. */
- fail_if (xmalloc(header, length, char)); /* FIXME this do not feel right (but it works perfectly...) */
+ fail_if (xmalloc(header, length, char)); /* Last char is a LF, which is substituted with NUL. */
/* Copy the header data into the allocated header, */
memcpy(header, this->buffer, length * sizeof(char));
/* and NUL-terminate it. */