diff options
author | Volker Lendecke <vl@samba.org> | 2014-01-01 11:38:52 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-02-20 11:43:08 -0800 |
commit | 69300c034f64e86439d2898a5832a400a8ee319a (patch) | |
tree | 31e92d900e5ab493e53354ad2851c8c2be3aca8d /source3/lib/util.c | |
parent | efed82cb69499f6d7ed09b7263689e47e25a9d94 (diff) | |
download | samba-69300c034f64e86439d2898a5832a400a8ee319a.tar.gz samba-69300c034f64e86439d2898a5832a400a8ee319a.tar.xz samba-69300c034f64e86439d2898a5832a400a8ee319a.zip |
lib: Avoid a strlen call in xx_path()
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Kai Blin <kai@samba.org>
Diffstat (limited to 'source3/lib/util.c')
-rw-r--r-- | source3/lib/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c index 374bc5d5c9..07daad2894 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -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); } /** |