summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-08-15 06:33:39 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-08-15 06:33:39 +0000
commit1392c28b6f1165888e517b9f6c0a6bd648aac760 (patch)
tree853755cc5cdd2250f55ce8607cc5d936600b8c67 /gpsd.c
parentc1388d50c553d9256d92b8f847dcca0a95217231 (diff)
downloadgpsd-1392c28b6f1165888e517b9f6c0a6bd648aac760.tar.gz
Don't let error messages step on other progress indications.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gpsd.c b/gpsd.c
index 4611d3c8..3455cb7b 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -1708,8 +1708,8 @@ static void handle_newstyle_request(struct subscriber_t *sub,
++buf;
stringend1:;
}
- (void)strlcpy(reply,
- "{\"class\":ERROR\",\"message\":\"No channels attached.\"}",
+ (void)strlcat(reply,
+ "{\"class\":\"ERROR\",\"message\":\"Can't perform CONFIGCHAN, no channels attached.\"}\r\n",
replylen);
} else {
struct channel_t *chp;
@@ -1786,8 +1786,8 @@ static void handle_newstyle_request(struct subscriber_t *sub,
++buf;
stringend2:;
}
- (void)strlcpy(reply,
- "{\"class\":ERROR\",\"message\":\"No channels attached.\"}",
+ (void)strlcat(reply,
+ "{\"class\":\"ERROR\",\"message\":\"Can't perfgorm CONFIGDEV, no channels attached.\"}\r\n",
replylen);
} else {
struct channel_t *chp;