mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-29 06:42:45 +00:00
Fix an easy WARNS.
This commit is contained in:
parent
13fcef50d0
commit
f193e3fc68
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=101094
@ -190,7 +190,7 @@ linkit(const char *target, const char *source, int isdir)
|
||||
else
|
||||
++p;
|
||||
if (snprintf(path, sizeof(path), "%s/%s", source, p) >=
|
||||
sizeof(path)) {
|
||||
(ssize_t)sizeof(path)) {
|
||||
errno = ENAMETOOLONG;
|
||||
warn("%s", target);
|
||||
return (1);
|
||||
|
Loading…
Reference in New Issue
Block a user