summaryrefslogtreecommitdiff
path: root/refclock.c
diff options
context:
space:
mode:
Diffstat (limited to 'refclock.c')
-rw-r--r--refclock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/refclock.c b/refclock.c
index 42fee4c..561df45 100644
--- a/refclock.c
+++ b/refclock.c
@@ -2,7 +2,7 @@
chronyd/chronyc - Programs for keeping computer clocks accurate.
**********************************************************************
- * Copyright (C) Miroslav Lichvar 2009-2011, 2013-2014, 2016-2018
+ * Copyright (C) Miroslav Lichvar 2009-2011, 2013-2014, 2016-2019
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of version 2 of the GNU General Public License as
@@ -350,7 +350,7 @@ RCL_CheckDriverOptions(RCL_Instance instance, const char **options)
option = get_next_driver_option(instance, option)) {
for (i = 0; options && options[i]; i++) {
len = strlen(options[i]);
- if (!strncmp(options[i], option, strlen(options[i])) &&
+ if (!strncmp(options[i], option, len) &&
(option[len] == '=' || option[len] == '\0'))
break;
}