r20570: use talloc_asprintf() instead of talloc_asprintf_append()
authorStefan Metzmacher <metze@samba.org>
Fri, 5 Jan 2007 21:22:15 +0000 (21:22 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:37:03 +0000 (14:37 -0500)
commit927e1636702351d183cd76c8ff34c82c5e80c51f
treeced098441e940986deacd9a8335a668b5824b121
parent21664e91abe0a06a9716e59076a0f3dcf638ded7
r20570: use talloc_asprintf() instead of talloc_asprintf_append()
because talloc_asprintf_append() doesn't work like talloc_append_string()
which uses strlen() on the old string instead of (tc->size - 1)

This matter in this case because strlower_talloc() over allocates

tridge: how should we fix this in lib/talloc/?

metze
(This used to be commit 1748af20b1f7b325048619a1e66a1c8b69474c5f)
source4/libnet/libnet_become_dc.c