aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-05-19 00:12:45 +0200
committerMattias Andrée <maandree@operamail.com>2014-05-19 00:12:49 +0200
commit60b8698c6a15ce223710c019c0289c815a71c850 (patch)
treea0bcc46e7e51d44c5381df583a11be3c0c9aa8bc
parentfix regression (diff)
downloadmds-60b8698c6a15ce223710c019c0289c815a71c850.tar.gz
mds-60b8698c6a15ce223710c019c0289c815a71c850.tar.bz2
mds-60b8698c6a15ce223710c019c0289c815a71c850.tar.xz
add to fixme:s
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r--src/libmdsserver/mds-message.c2
-rw-r--r--src/mds-server/mds-server.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libmdsserver/mds-message.c b/src/libmdsserver/mds-message.c
index 5051cb1..4371ec3 100644
--- a/src/libmdsserver/mds-message.c
+++ b/src/libmdsserver/mds-message.c
@@ -228,7 +228,7 @@ int mds_message_read(mds_message_t* restrict this, int fd)
this->stage = 2;
return 0;
}
- if ((this->stage == 1) && (this->payload_size > 0))
+ if ((this->stage == 1) && (this->payload_size > 0)) /* FIXME: next message fails if not LF-terminated. */
{
/* How much of the payload that has not yet been filled. */
size_t need = this->payload_size - this->payload_ptr;
diff --git a/src/mds-server/mds-server.c b/src/mds-server/mds-server.c
index a9d4422..947e314 100644
--- a/src/mds-server/mds-server.c
+++ b/src/mds-server/mds-server.c
@@ -292,7 +292,7 @@ void* slave_loop(void* data)
/* Multicast information about the client closing. */
- n = 2 * 10 + 1 + strlen("Client closed: :\n\n");
+ n = 2 * 10 + 1 + strlen("Client closed: :\n\n"); /* FIXME: why is this not received? */
fail_if (xmalloc(msgbuf, n, char));
snprintf(msgbuf, n,
"Client closed: %" PRIu32 ":%" PRIu32 "\n"