git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efed82c
)
lib: Avoid a strlen call in xx_path()
author
Volker Lendecke
<vl@samba.org>
Wed, 1 Jan 2014 10:38:52 +0000
(11:38 +0100)
committer
Jeremy Allison
<jra@samba.org>
Thu, 20 Feb 2014 19:43:08 +0000
(11:43 -0800)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Kai Blin <kai@samba.org>
source3/lib/util.c
patch
|
blob
|
history
diff --git
a/source3/lib/util.c
b/source3/lib/util.c
index 374bc5d5c9206bcda994e4d657bed6614de46826..07daad2894b6bd0bf41015b5b7b95b2d8b9613ac 100644
(file)
--- 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);
}
/**