[Git][NTPsec/ntpsec][master] Fix strncpy/strlcpy typo
Hal Murray
gitlab at mg.gitlab.com
Tue Apr 24 17:22:00 UTC 2018
Hal Murray pushed to branch master at NTPsec / ntpsec
Commits:
e59c5c07 by Hal Murray at 2018-04-24T17:21:19Z
Fix strncpy/strlcpy typo
- - - - -
1 changed file:
- ntpd/refclock_generic.c
Changes:
=====================================
ntpd/refclock_generic.c
=====================================
--- a/ntpd/refclock_generic.c
+++ b/ntpd/refclock_generic.c
@@ -4120,7 +4120,7 @@ gps16x_message(
char buffer[128];
get_mbg_ascii_msg(&bufp, &gps_ascii_msg);
- strncpy(buffer, "gps_message=", sizeof(buffer));
+ strlcpy(buffer, "gps_message=", sizeof(buffer));
if (gps_ascii_msg.valid)
{
char buffer1[128];
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/e59c5c07ffc3ce811788e419d4b3640b17e28eb9
---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/e59c5c07ffc3ce811788e419d4b3640b17e28eb9
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/20180424/f485dd77/attachment.html>
More information about the vc
mailing list