Unbreak last commit to ln for amd64.
Cast string precision to `int'. amd64 systems warn about the field precision being `long int' if we don't, and pathnames are normally short enough to fit in an `int'. Noticed by: pav
This commit is contained in:
parent
7e44e88a84
commit
d605a06c6e
@ -233,7 +233,7 @@ linkit(const char *source, const char *target, int isdir)
|
||||
else
|
||||
p = target;
|
||||
(void)snprintf(wbuf, sizeof(wbuf), "%.*s%s",
|
||||
(p - target), target, source);
|
||||
(int)(p - target), target, source);
|
||||
if (stat(wbuf, &sb) != 0)
|
||||
warn("warning: %s", source);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user