diff options
Diffstat (limited to 'usr.bin/limits/limits.c')
-rw-r--r-- | usr.bin/limits/limits.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/limits/limits.c b/usr.bin/limits/limits.c index 3c5fd6d..af4a4ed 100644 --- a/usr.bin/limits/limits.c +++ b/usr.bin/limits/limits.c @@ -549,7 +549,7 @@ print_limit(rlim_t limit, unsigned divisor, const char * inf, const char * pfx, char numbr[64]; if (limit == RLIM_INFINITY) - strcpy(numbr, inf); + strlcpy(numbr, inf, sizeof(numbr)); else sprintf(numbr, "%jd", (intmax_t)((limit + divisor/2) / divisor)); printf(pfx, which, numbr); |