diff options
Diffstat (limited to 'usr.sbin/xntpd/lib/hextolfp.c')
-rw-r--r-- | usr.sbin/xntpd/lib/hextolfp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/xntpd/lib/hextolfp.c b/usr.sbin/xntpd/lib/hextolfp.c index d9291cc..104446c 100644 --- a/usr.sbin/xntpd/lib/hextolfp.c +++ b/usr.sbin/xntpd/lib/hextolfp.c @@ -30,7 +30,7 @@ hextolfp(str, lfp) */ while (isspace(*cp)) cp++; - + cpstart = cp; while (*cp != '\0' && (cp - cpstart) < 8 && (ind = strchr(digits, *cp)) != NULL) { @@ -56,7 +56,7 @@ hextolfp(str, lfp) if ((cp - cpstart) < 8 || ind == NULL) return 0; - + if (*cp != '\0' && !isspace(*cp)) return 0; |