diff options
| author | Andrew R. Reiter <arr@FreeBSD.org> | 2001-11-20 16:47:42 +0000 |
|---|---|---|
| committer | Andrew R. Reiter <arr@FreeBSD.org> | 2001-11-20 16:47:42 +0000 |
| commit | 3846fd9190088e9bc1844e7f7bd8a6d274a02a20 (patch) | |
| tree | 40b2696a1b6ba26c08b711b08737af275e1a024e | |
| parent | 487d13c0e7f1c5405da4ba06ba630b15da1bdd45 (diff) | |
Notes
| -rw-r--r-- | usr.bin/ar/misc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ar/misc.c b/usr.bin/ar/misc.c index d99d9564962e..0a0dd1bc9902 100644 --- a/usr.bin/ar/misc.c +++ b/usr.bin/ar/misc.c @@ -73,9 +73,10 @@ tmp() } if (envtmp) - (void)sprintf(path, "%s/%s", envtmp, _NAME_ARTMP); + (void)snprintf(path, sizeof(path), "%s/%s", envtmp, + _NAME_ARTMP); else - strcpy(path, _PATH_ARTMP); + strlcpy(path, _PATH_ARTMP, sizeof(path)); sigfillset(&set); (void)sigprocmask(SIG_BLOCK, &set, &oset); |
