diff --git a/bin/ln/ln.c b/bin/ln/ln.c index 288a5a86d322..19d57c6626f7 100644 --- a/bin/ln/ln.c +++ b/bin/ln/ln.c @@ -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);