aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--transact.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/transact.c b/transact.c
index c246df89..0c246a1d 100644
--- a/transact.c
+++ b/transact.c
@@ -217,7 +217,7 @@ static char *parse_received(struct query *ctl, char *bufp)
for (sp = ok + 2; isspace((unsigned char)*sp); sp++)
continue;
tp = rbuf;
- for (; !isspace((unsigned char)*sp); sp++)
+ for (; *sp && !isspace((unsigned char)*sp); sp++)
RBUF_WRITE(*sp);
*tp = '\0';