summaryrefslogtreecommitdiff
path: root/source3/lib/charcnv.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-09-15 20:24:35 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:30:49 -0500
commitad97bcf813d5f06df4711896eefc99c0c32651cc (patch)
tree8a65bf71ee5c2a339a4db7fc4aa9c0fa4462e53e /source3/lib/charcnv.c
parentf82eb0fef609e6f24f4d60142292c557cd1fe5fd (diff)
downloadsamba-ad97bcf813d5f06df4711896eefc99c0c32651cc.tar.gz
samba-ad97bcf813d5f06df4711896eefc99c0c32651cc.tar.bz2
samba-ad97bcf813d5f06df4711896eefc99c0c32651cc.zip
r25184: Fix some C++ warnings and an uninitialized variable
(This used to be commit b64df8a3c504ab7749c21ffb26e4771a9a0a328f)
Diffstat (limited to 'source3/lib/charcnv.c')
-rw-r--r--source3/lib/charcnv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/charcnv.c b/source3/lib/charcnv.c
index 26581ba305..a8fb95df06 100644
--- a/source3/lib/charcnv.c
+++ b/source3/lib/charcnv.c
@@ -1493,7 +1493,7 @@ static size_t pull_ucs2_base_talloc(TALLOC_CTX *ctx,
/* Have we got space to append the '\0' ? */
if (size <= dest_len) {
/* No, realloc. */
- dest = TALLOC_REALLOC(ctx, dest,
+ dest = TALLOC_REALLOC_ARRAY(ctx, dest, char,
dest_len+1);
if (!dest) {
/* talloc fail. */