[Git][NTPsec/ntpsec][master] Squash a few more warnings, #479

Hal Murray gitlab at mg.gitlab.com
Fri Apr 20 22:41:22 UTC 2018


Hal Murray pushed to branch master at NTPsec / ntpsec


Commits:
df6b236c by Hal Murray at 2018-04-20T22:39:43Z
Squash a few more warnings, #479

- - - - -


1 changed file:

- ntpd/refclock_oncore.c


Changes:

=====================================
ntpd/refclock_oncore.c
=====================================
--- a/ntpd/refclock_oncore.c
+++ b/ntpd/refclock_oncore.c
@@ -1762,7 +1762,7 @@ oncore_get_timestamp(
 		Rsm = ((instance->BEHa[129]<<8) | instance->BEHa[130]);
 
 	if (instance->chan == 6 || instance->chan == 8) {
-		char	f1[5], f2[5], f3[5], f4[5];
+		char	f1[5], f2[5], f3[8], f4[5];
 		if (instance->traim) {
 			snprintf(f1, sizeof(f1), "%d",
 				 instance->BEHn[21]);
@@ -1800,7 +1800,7 @@ oncore_get_timestamp(
                     instance->BEHa[65], instance->BEHa[69]
 		    );		/* will be 0 for 6 chan */
 	} else if (instance->chan == 12) {
-		char	f1[5], f2[5], f3[5], f4[5];
+		char	f1[5], f2[5], f3[8], f4[5];
 		if (instance->traim) {
 			snprintf(f1, sizeof(f1), "%d",
 				 instance->BEHn[6]);



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

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/df6b236c912e5e2e2e6eb360a3d101875a74bba1
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/20180420/30d6cf7e/attachment.html>


More information about the vc mailing list