diff options
Diffstat (limited to 'driver_rtcm2.c')
-rw-r--r-- | driver_rtcm2.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/driver_rtcm2.c b/driver_rtcm2.c index 68dadcb0..8e014937 100644 --- a/driver_rtcm2.c +++ b/driver_rtcm2.c @@ -656,8 +656,7 @@ void rtcm2_json_dump(struct rtcm2_t *rtcm, /*@out@*/char buf[], size_t buflen) break; default: - (void)snprintf(buf + strlen(buf), buflen - strlen(buf), - "\"length\":%u,\"satellites\":[", rtcm->length); + (void)strlcat(buf, "\"data\":[", buflen); for (n = 0; n < rtcm->length; n++) (void)snprintf(buf + strlen(buf), buflen - strlen(buf), "\"0x%08x\",", rtcm->words[n]); |