diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-08-15 06:33:39 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-08-15 06:33:39 +0000 |
commit | 1392c28b6f1165888e517b9f6c0a6bd648aac760 (patch) | |
tree | 853755cc5cdd2250f55ce8607cc5d936600b8c67 /gpsd.c | |
parent | c1388d50c553d9256d92b8f847dcca0a95217231 (diff) | |
download | gpsd-1392c28b6f1165888e517b9f6c0a6bd648aac760.tar.gz |
Don't let error messages step on other progress indications.
Diffstat (limited to 'gpsd.c')
-rw-r--r-- | gpsd.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; |