diff options
author | Xin LI <delphij@FreeBSD.org> | 2018-08-21 02:38:07 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2018-08-21 02:38:07 +0000 |
commit | 4e1ef62a367de01ccb7156bfe6ec2d613d6eb860 (patch) | |
tree | 657e24d36c50d98aacc656b863f46bb02bc0e4a0 /contrib/ntp/libntp/ntp_calendar.c | |
parent | ab82c6bdadef06dce6e2a59978bc1b2bbb1a9232 (diff) | |
parent | c7f4d2332394d5600fe4e14c530ede36b0ff29b0 (diff) |
Notes
Diffstat (limited to 'contrib/ntp/libntp/ntp_calendar.c')
-rw-r--r-- | contrib/ntp/libntp/ntp_calendar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/ntp/libntp/ntp_calendar.c b/contrib/ntp/libntp/ntp_calendar.c index a550d5d3a2c7d..f8b7db4ea501f 100644 --- a/contrib/ntp/libntp/ntp_calendar.c +++ b/contrib/ntp/libntp/ntp_calendar.c @@ -1873,7 +1873,7 @@ basedate_eval_string( goto buildstamp; } - rc = scanf(str, "%lu%n", &ned, &nc); + rc = sscanf(str, "%lu%n", &ned, &nc); if (rc == 1 && (size_t)nc == sl) { if (ned <= INT32_MAX) return (int32_t)ned; |