summaryrefslogtreecommitdiffstats
path: root/src/disp-nis.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/disp-nis.c')
-rw-r--r--src/disp-nis.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/disp-nis.c b/src/disp-nis.c
index b584765..c80ab94 100644
--- a/src/disp-nis.c
+++ b/src/disp-nis.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2008,2011 Red Hat, Inc.
+ * Copyright 2008,2011,2013 Red Hat, Inc.
*
* This Program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -81,7 +81,7 @@ struct dispatch_client {
client_replying_final,
} client_state;
/* The client's request while we're reading it. */
- char client_inbuf[8192];
+ char client_inbuf[8192 + 4];
ssize_t client_inbuf_used;
char *client_query;
ssize_t client_query_size;
@@ -769,8 +769,8 @@ client_read(struct plugin_state *state, struct dispatch_client *client)
free(client->client_query);
client->client_query = query;
client->client_query_size = nlen;
- /* Drop the fragment from the incoming
- * buffer by moving the rest forward. */
+ /* Drop the fragment from the incoming buffer by
+ * moving the rest of it forward. */
if ((len + 4) < client->client_inbuf_used) {
memmove(client->client_inbuf,
client->client_inbuf + (len + 4),