From 2bb6e2d842ac4092b94fd23208df7c99893ba8aa Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 27 Apr 2014 16:23:22 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/libmdsserver/mds-message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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. */ -- cgit v1.2.3-70-g09d2