[Git][NTPsec/ntpsec][master] Fix #812 putarray sends right length to putunqstr

Hal Murray (@hal.murray) gitlab at mg.gitlab.com
Thu Dec 7 06:54:24 UTC 2023



Hal Murray pushed to branch master at NTPsec / ntpsec


Commits:
e3afd668 by James Browning at 2023-12-06T22:31:09-08:00
Fix #812 putarray sends right length to putunqstr


- - - - -


1 changed file:

- ntpd/ntp_control.c


Changes:

=====================================
ntpd/ntp_control.c
=====================================
@@ -1386,7 +1386,7 @@ ctl_putarray(
 		snprintf(buf, sizeof(buf), " %.2f", arr[i] * MS_PER_S);
                 strlcat(buffer, buf, sizeof(buffer));
 	} while (i != start);
-	ctl_putunqstr(tag, buffer, strlen(buf));
+	ctl_putunqstr(tag, buffer, strlen(buffer));
 }
 
 



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/e3afd66839d79d6d0073d33b19b69ea0bf5ba58b

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/e3afd66839d79d6d0073d33b19b69ea0bf5ba58b
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20231207/b1e8fd50/attachment.htm>


More information about the vc mailing list