1
0
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:
Volker Lendecke 2014-01-01 11:38:52 +01:00 committed by Jeremy Allison
parent efed82cb69
commit 69300c034f

View File

@ -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);
}
/**