diff options
Diffstat (limited to 'libntp/ntp_calendar.c')
-rw-r--r-- | libntp/ntp_calendar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libntp/ntp_calendar.c b/libntp/ntp_calendar.c index a550d5d3a2c7..f8b7db4ea501 100644 --- a/libntp/ntp_calendar.c +++ b/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; |