diff options
Diffstat (limited to 'refclock.c')
-rw-r--r-- | refclock.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |