From 9cba026f3bd734f241835b66614bcd105227a0ab Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Sat, 18 May 2024 22:55:35 +0200 Subject: [PATCH] fixup --- net_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net_io.c b/net_io.c index 4570447d..b1de69bb 100644 --- a/net_io.c +++ b/net_io.c @@ -3609,7 +3609,7 @@ static int handle_gpsd(struct client *c, char *p, int remote, int64_t now, struc double alt_m = -2e6; char *altp = strstr(p, "\"alt\":"); if (altp) { - alt_m += 6; + altp += 6; saveptr = NULL; strtok_r(altp, ",", &saveptr); alt_m = strtod(altp, NULL);