summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-09-21 04:48:07 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-09-21 04:48:07 +0000
commit3f5730a4ea12c0a8f2ed10be7ce8b5c579ff90dd (patch)
tree99ba61a620581ef82bb219ed5f2e4cefe2a90292 /gpsd.c
parent47564db0580ee278841f7dcdf9b3f5a35d0c63d8 (diff)
downloadgpsd-3f5730a4ea12c0a8f2ed10be7ce8b5c579ff90dd.tar.gz
Fix incorrect processing of multiple commands pointed out by mrd.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gpsd.c b/gpsd.c
index c215f73f..0f822c9f 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -1812,7 +1812,8 @@ static int handle_gpsd_request(struct subscriber_t *sub, const char *buf)
if (isspace(*buf))
end = buf + 1;
else
- handle_newstyle_request(sub, buf, &end, reply, sizeof(reply));
+ handle_newstyle_request(sub, buf, &end,
+ reply+strlen(reply), sizeof(reply)-strlen(reply));
}
#endif /* GPSDNG_ENABLE */
#ifdef OLDSTYLE_ENABLE