whitespace fix
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
a36986bb80
commit
bf7f103ffb
@ -143,7 +143,7 @@ char* FAST_FUNC xmalloc_realpath_coreutils(const char *path)
|
|||||||
buf = xmalloc_realpath(path);
|
buf = xmalloc_realpath(path);
|
||||||
if (buf) {
|
if (buf) {
|
||||||
unsigned len = strlen(buf);
|
unsigned len = strlen(buf);
|
||||||
buf = xrealloc(buf, len + strlen(last_slash) + 2);
|
buf = xrealloc(buf, len + strlen(last_slash) + 2);
|
||||||
buf[len++] = '/';
|
buf[len++] = '/';
|
||||||
strcpy(buf + len, last_slash);
|
strcpy(buf + len, last_slash);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user