aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmdsserver
diff options
context:
space:
mode:
Diffstat (limited to 'src/libmdsserver')
-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 b5ffab7..77cd4a9 100644
--- a/src/libmdsserver/mds-message.c
+++ b/src/libmdsserver/mds-message.c
@@ -247,7 +247,7 @@ int mds_message_read(mds_message_t* this, int fd)
/* But if we head left over data that is for the next message,
just move the pointer back as much as we read. (Which is
actually what we do even we did not have excess data.) */
- this->buffer_ptr -= needed;
+ this->buffer_ptr -= need;
/* If we have filled the payload, make the end of this stage,
i.e. that the message is complete, and return with success. */