diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-09-21 04:48:07 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-09-21 04:48:07 +0000 |
commit | 3f5730a4ea12c0a8f2ed10be7ce8b5c579ff90dd (patch) | |
tree | 99ba61a620581ef82bb219ed5f2e4cefe2a90292 /gpsd.c | |
parent | 47564db0580ee278841f7dcdf9b3f5a35d0c63d8 (diff) | |
download | gpsd-3f5730a4ea12c0a8f2ed10be7ce8b5c579ff90dd.tar.gz |
Fix incorrect processing of multiple commands pointed out by mrd.
Diffstat (limited to 'gpsd.c')
-rw-r--r-- | gpsd.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |