diff options
Diffstat (limited to 'source3/lib/cbuf.c')
-rw-r--r-- | source3/lib/cbuf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/cbuf.c b/source3/lib/cbuf.c index 85d1c14d45..62a705c695 100644 --- a/source3/lib/cbuf.c +++ b/source3/lib/cbuf.c @@ -51,7 +51,7 @@ cbuf* cbuf_new(const void* ctx) if (s == NULL) return NULL; s->size = 32; - s->buf = talloc_size(s, s->size); + s->buf = (char *)talloc_size(s, s->size); if (s->size && (s->buf == NULL)) { talloc_free(s); return NULL; @@ -66,7 +66,7 @@ cbuf* cbuf_copy(const cbuf* b) return NULL; } - s->buf = talloc_memdup(s, b->buf, b->size); /* only up to pos? */ + s->buf = (char *)talloc_memdup(s, b->buf, b->size); /* only up to pos? */ /* XXX shallow did not work, because realloc */ /* fails with multiple references */ |