mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
lib: Avoid a strlen call in xx_path()
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Kai Blin <kai@samba.org>
This commit is contained in:
parent
efed82cb69
commit
69300c034f
@ -1504,7 +1504,7 @@ static char *xx_path(const char *name, const char *rootpath)
|
||||
}
|
||||
}
|
||||
|
||||
return talloc_asprintf_append(fname, "/%s", name);
|
||||
return talloc_asprintf_append_buffer(fname, "/%s", name);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user