mirror of
https://github.com/OpenRC/openrc.git
synced 2024-11-27 11:54:26 +08:00
parent
109869641f
commit
b46123f2e1
@ -1152,7 +1152,7 @@ int main(int argc, char **argv)
|
||||
}
|
||||
lnk = xmalloc(4096);
|
||||
memset(lnk, 0, 4096);
|
||||
if (readlink(argv[1], lnk, sizeof(lnk)-1)) {
|
||||
if (readlink(argv[1], lnk, 4096)) {
|
||||
dir = dirname(path);
|
||||
if (strchr(lnk, '/')) {
|
||||
save = xstrdup(dir);
|
||||
|
Loading…
Reference in New Issue
Block a user