summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-08-18 07:38:23 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-08-18 07:38:23 +0000
commit22f2dbd5af5ecfcdcd3ce71cb2b6d714887d17cd (patch)
tree10675b3dd9255abb6aac1e5176a75804eb83cb55
parent6ffed75ea41f295fc7f7fbf66d7679de90b21db7 (diff)
downloadgpsd-22f2dbd5af5ecfcdcd3ce71cb2b6d714887d17cd.tar.gz
Delimit a version report field properly.
-rw-r--r--gpsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsd.c b/gpsd.c
index 3b1670a8..bd0368d4 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -1742,7 +1742,7 @@ static void handle_newstyle_request(struct subscriber_t *sub,
}
} else if (strncmp(buf, "VERSION;", 8) == 0) {
(void)snprintf(reply+strlen(reply), replylen-strlen(reply),
- "{\"class\":\"VERSION\",\"version\":\"" VERSION "\",\"rev\":$Id$,\"api_major\":%d,\"api_minor\":%d}",
+ "{\"class\":\"VERSION\",\"version\":\"" VERSION "\",\"rev\":\"$Id$\",\"api_major\":%d,\"api_minor\":%d}",
GPSD_API_MAJOR_VERSION, GPSD_API_MINOR_VERSION);
buf += 8;
} else {